Examples of RunnableAction


Examples of com.fray.evo.util.RunnableAction

    if (s.larva.size() > s.hasQueen.size())
    {
      spawnLarva(s, e);
    }
    else
      s.addFutureAction(5, new RunnableAction()
      {
        @Override
        public void run(GameLog e)
        {
          if (s.larva.size() > s.hasQueen.size())
View Full Code Here

Examples of com.fray.evo.util.RunnableAction

    if (s.larva.size() > hatchWithoutQueen)
    {
      s.hasQueen.add(true);

      final int hatchIndex = hatchWithoutQueen;
      s.addFutureAction(40, new RunnableAction()
      {
        @Override
        public void run(GameLog e)
        {
          if (e.isEnabled() && s.getLarva() < s.bases() * 19)
            e.printMessage(s, GameLog.MessageType.Obtained,
                " @"+messages.getString(ZergLibrary.Hatchery.getName()) + " #" + (hatchIndex+1) +" "
                + messages.getString(ZergLibrary.Larva.getName())
                + " +"
                + (Math.min(19, s.getLarva(hatchIndex) + 2) - s
                    .getLarva(hatchIndex)));
          s.setLarva(hatchIndex, Math.min(19, s.getLarva(hatchIndex) + 2));
          s.addFutureAction(1, new RunnableAction()
          {
            @Override
            public void run(GameLog e)
            {
              if (e.isEnabled() && s.getLarva() < s.bases() * 19)
 
View Full Code Here

Examples of com.fray.evo.util.RunnableAction

  @Override
  protected void postExecute(final EcBuildOrder s, final GameLog e)
  {
    s.addUnits((Unit) buildable, 1);
    s.dronesGoingOnMinerals += 1;
    s.addFutureAction(2, new RunnableAction()
    {
      @Override
      public void run(GameLog e)
      {
        s.dronesGoingOnMinerals--;
View Full Code Here

Examples of org.apache.uima.caseditor.ui.action.RunnableAction

    if (!documentElements.isEmpty()) {

      IRunnableWithProgress annotatorRunnableAction = new CleanDocumentActionRunnable(
              documentElements);

      RunnableAction annotatorAction = new RunnableAction(shell, "Clean documents",
              annotatorRunnableAction);

      menu.add(annotatorAction);
    }
  }
View Full Code Here

Examples of org.apache.uima.caseditor.ui.action.RunnableAction

            if (config != null) {
              ConsumerActionRunnable consumerRunnableAction = new ConsumerActionRunnable(config,
                      corpora);

              RunnableAction consumerAction = new RunnableAction(mShell, consumer.getName(),
                      consumerRunnableAction);

              menu.add(consumerAction);

            }
View Full Code Here

Examples of org.apache.uima.caseditor.ui.action.RunnableAction

          if (config != null) {
            IRunnableWithProgress annotatorRunnableAction = new AnnotatorActionRunnable(config,
                    documentElements);

            RunnableAction annotatorAction = new RunnableAction(mShell, annotator.getName(),
                    annotatorRunnableAction);

            menu.add(annotatorAction);
          }
        }
View Full Code Here

Examples of org.apache.uima.caseditor.ui.action.RunnableAction

            if (config != null) {
              ConsumerActionRunnable consumerRunnableAction = new ConsumerActionRunnable(config,
                      corpora);

              RunnableAction consumerAction = new RunnableAction(mShell, consumer.getName(),
                      consumerRunnableAction);

              menu.add(consumerAction);

            }
View Full Code Here

Examples of org.apache.uima.caseditor.ui.action.RunnableAction

    if (!documentElements.isEmpty()) {

      IRunnableWithProgress annotatorRunnableAction = new CleanDocumentActionRunnable(
              documentElements);

      RunnableAction annotatorAction = new RunnableAction(shell, "Clean documents",
              annotatorRunnableAction);

      menu.add(annotatorAction);
    }
  }
View Full Code Here

Examples of org.apache.uima.caseditor.ui.action.RunnableAction

          if (config != null) {
            IRunnableWithProgress annotatorRunnableAction = new AnnotatorActionRunnable(config,
                    documentElements);

            RunnableAction annotatorAction = new RunnableAction(mShell, annotator.getName(),
                    annotatorRunnableAction);

            menu.add(annotatorAction);
          }
        }
View Full Code Here

Examples of org.fusesource.ide.commons.ui.actions.RunnableAction

          }
          fireNodePropertyChangedEvent(id);
        }
      }
    };
    tableView.setDoubleClickAction(new RunnableAction(getClass().getName() + ".editSetHeaderDef", "Edit", editAction));

    tableView.createPartControl(panel);
    final TableViewer viewer = tableView.getViewer();
    final Control control = tableView.getControl();
    control.setLayoutData(new GridData(GridData.FILL_BOTH));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.