Examples of registerAction()


Examples of cero.games.Game.registerAction()

                CommandLineLauncher.getCurrentPlayer(), from,
                to, cards));
          } catch (ActionException e) {
            System.out.println("error during playing cards");
          }
          game.registerAction(action);
          return true;
        }
      }

    }
View Full Code Here

Examples of cero.games.Game.registerAction()

              colcards));
    } catch (ActionException e) {
      // there shouldn't be any problem here !
      e.printStackTrace();
    }
    game.registerAction(action);
    return true;
  }

  @Override
  public String help() {
View Full Code Here

Examples of cero.games.Game.registerAction()

              colcards));
    } catch (ActionException e) {
      // there shouldn't be any problem here !
      e.printStackTrace();
    }
    game.registerAction(action);
    return true;
  }

  @Override
  public String help() {
View Full Code Here

Examples of cero.games.Game.registerAction()

      action.playerActed(new ActionEvent(game, player, null, null, null));
    } catch (ActionException e) {
      // there shouldn't be any problem here !
      e.printStackTrace();
    }
    game.registerAction(action);
    return true;
  }

  @Override
  public String help() {
View Full Code Here

Examples of com.intellij.openapi.actionSystem.ActionManager.registerAction()

                for (GoalContainer plugin : plugins) {
                    final Goal[] goals = plugin.getGoals();
                    for (Goal goal : goals) {
                        final AnAction action = new GoalAction(goal);
                        if (actMgr.getAction(goal.getName()) == null)
                            actMgr.registerAction(goal.getName(), action, PLUGIN_ID);
                    }
                }
            }
        };
View Full Code Here

Examples of com.intellij.openapi.actionSystem.ActionManager.registerAction()

        newAction.getTemplatePresentation().setHoveredIcon(action.getTemplatePresentation().getHoveredIcon());
        newAction.getTemplatePresentation().setDescription(action.getTemplatePresentation().getDescription());
        newAction.copyShortcutFrom(action);

        actionManager.unregisterAction(actionId);
        actionManager.registerAction(actionId, newAction);
        LOG.info("Wrapped action " + actionId);

        return newAction;
    }
View Full Code Here

Examples of com.intellij.openapi.actionSystem.ActionManager.registerAction()

            LOG.warn("Couldn't unwrap action " + actionId + " because it was not found");
            return;
        }
        if (isActionWrapper(wrappedAction)) {
            actionManager.unregisterAction(actionId);
            actionManager.registerAction(actionId, originalAction(wrappedAction));
            LOG.info("Unwrapped action " + actionId);
        } else {
            LOG.warn("Action " + actionId + " is not wrapped");
        }
    }
View Full Code Here

Examples of org.eclipse.gef.ui.actions.ActionRegistry.registerAction()

    protected void createActions() {
        super.createActions();
        ActionRegistry registry = getActionRegistry();

        IAction action = new DirectEditAction((IWorkbenchPart) this);
        registry.registerAction(action);
        getSelectionActions().add(action.getId());

        action = new AlignmentAction((IWorkbenchPart) this,
                PositionConstants.LEFT);
        registry.registerAction(action);
View Full Code Here

Examples of org.eclipse.gef.ui.actions.ActionRegistry.registerAction()

        registry.registerAction(action);
        getSelectionActions().add(action.getId());

        action = new AlignmentAction((IWorkbenchPart) this,
                PositionConstants.LEFT);
        registry.registerAction(action);
        getSelectionActions().add(action.getId());

        action = new AlignmentAction((IWorkbenchPart) this,
                PositionConstants.CENTER);
        registry.registerAction(action);
View Full Code Here

Examples of org.eclipse.gef.ui.actions.ActionRegistry.registerAction()

        registry.registerAction(action);
        getSelectionActions().add(action.getId());

        action = new AlignmentAction((IWorkbenchPart) this,
                PositionConstants.CENTER);
        registry.registerAction(action);
        getSelectionActions().add(action.getId());

        action = new AlignmentAction((IWorkbenchPart) this,
                PositionConstants.RIGHT);
        registry.registerAction(action);
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.