Package org.jamesii.gui.application.action

Examples of org.jamesii.gui.application.action.ActionSet


  @Override
  protected List<IAction> generateActions() {

    List<IAction> actions = new ArrayList<>();
    actions.add(new ActionSet("org.jamesii.simspex", "SimSpace Exploration",
        "org.jamesii.menu.main?after=edit", null));

    actions.add(new SimSpExExperiment(getWindowManager(), null));

    actions.add(SeparatorAction.getSeparatorFor(
View Full Code Here


  @Override
  protected List<IAction> generateActions() {
    List<IAction> actions = new ArrayList<>();

    actions.add(new ActionSet("org.jamesii.server", "Server Management",
        "org.jamesii.menu.main/?before=org.jamesii.help", null));
    actions
        .add(new ManageServerAction("org.jamesii.server.msmanagement",
            "Manage a server...",
            new String[] { "org.jamesii.menu.main/org.jamesii.server?first" },
View Full Code Here

  @Override
  protected List<IAction> generateActions() {
    List<IAction> actions = new ArrayList<>();

    actions.add(new ActionSet("org.jamesii.visualization", "Visualization",
        "org.jamesii.menu.main?after=org.jamesii.edit", null));

    actions.add(new AbstractAction("org.jamesii.visualization.offline",
        "Offline visualization...",
        new String[] { "org.jamesii.menu.main/org.jamesii.visualization" },
View Full Code Here

    Icon icon = null;
    icon =
        IconManager.getIcon(IconIdentifier.TEXTAREA_SMALL,
            "Change Highlighting");

    actions.add(new ActionSet("org.jamesii.texteditor.highlighterselection",
        "Change Highlighting", "", null, null, icon, this));

    for (final IHighlighter h : highlighters) {
      actions
          .add(new AbstractAction("org.jamesii.texteditor.highlighter."
View Full Code Here

      synchronized (this) {
        modelWindowManager = new SymbolicModelWindowManager(getWindowManager());
      }
    }

    baseActions.add(new ActionSet("model.new", "Model", new String[] {
        "org.jamesii.menu.main/org.jamesii.file/org.jamesii.new?first",
        "org.jamesii.toolbar.main/org.jamesii.new?first" }, null));

    baseActions.add(new ActionSet("model.open", "Model", new String[] {
        "org.jamesii.menu.main/org.jamesii.file/org.jamesii.open?first",
        "org.jamesii.toolbar.main/org.jamesii.open?first" }, null));

    History.addListener(new IHistoryItemListener() {
View Full Code Here

                "org.jamesii.menu.main/org.jamesii.file/org.jamesii.open/model.open?last",
                "org.jamesii.toolbar.main/org.jamesii.open/model.open?last" },
            null));

    recentlyOpenedActions
        .add(new ActionSet(
            "model.open.recent",
            "Recently opened",
            new String[] {
                "org.jamesii.menu.main/org.jamesii.file/org.jamesii.open/model.open?after=model.open.recent.seprator",
                "org.jamesii.toolbar.main/org.jamesii.open/model.open?after=model.open.recent.seprator" },
View Full Code Here

  @Override
  protected List<IAction> generateActions() {
    List<IAction> actions = new ArrayList<>();

    actions.add(new ActionSet("org.jamesii.workflow", "Workflow",
        "org.jamesii.menu.main?before=org.jamesii.help", null));
    actions.add(new AbstractAction("org.jamesii.workflow.overview",
        "Start simple M&S",
        new String[] { "org.jamesii.menu.main/org.jamesii.workflow" }, null) {
View Full Code Here

    initIconSet();

    task++;

    l.taskInfo(this, "Creating Perspectives...");
    ActionManager.registerAction(new ActionSet("org.jamesii.file", "File",
        "org.jamesii.menu.main?first", null));

    ActionManager.registerAction(new ActionIAction(new QuitAction(manager),
        "quit", new String[] { "org.jamesii.menu.main/org.jamesii.file?last" },
        null));
View Full Code Here

  @Override
  protected List<IAction> generateActions() {
    final IWindowManager windowManager = getWindowManager();

    final List<IAction> actions = new ArrayList<>();
    actions.add(new ActionSet("org.jamesii.edit", "Edit",
        "org.jamesii.menu.main?after=org.jamesii.file", null));
    actions
        .add(new AbstractAction(
            "org.jamesii.preferences",
            "Preferences...",
            new String[] { "org.jamesii.menu.main/org.jamesii.edit?after=org.jamesii.edit.additionals" },
            null) {
          @Override
          public void execute() {
            PreferencesDialog.showPreferencesDialog(windowManager);
          }
        });

    Icon newIcon = null;
    newIcon = IconManager.getIcon(IconIdentifier.NEW_SMALL, "New");

    actions.add(new ActionSet("org.jamesii.new", "New", new String[] {
        "org.jamesii.menu.main/org.jamesii.file?first",
        "org.jamesii.toolbar.main?first" }, null, null, newIcon, null));

    Icon openIcon = null;
    openIcon = IconManager.getIcon(IconIdentifier.OPEN_SMALL, "Open");

    actions.add(new ActionSet("org.jamesii.open", "Open", new String[] {
        "org.jamesii.menu.main/org.jamesii.file?after=org.jamesii.new",
        "org.jamesii.toolbar.main?after=org.jamesii.new" }, null, null,
        openIcon, null));

    Icon saveIcon = null;
    saveIcon = IconManager.getIcon(IconIdentifier.SAVE_SMALL, "Save");

    actions.add(new SaveAction("org.jamesii.save", "Save", windowManager,
        saveIcon, new String[] {
            "org.jamesii.menu.main/org.jamesii.file?after=org.jamesii.open",
            "org.jamesii.toolbar.main?after=org.jamesii.open" }, KeyStroke
            .getKeyStroke(KeyEvent.VK_S,
                Toolkit.getDefaultToolkit().getMenuShortcutKeyMask())
            .toString(), Integer.valueOf(KeyEvent.VK_S), null));

    Icon saveAsIcon = null;
    saveAsIcon = IconManager.getIcon(IconIdentifier.SAVE_SMALL, "Save As...");
    actions
        .add(new SaveAsAction(
            "org.jamesii.saveas",
            "Save As...",
            windowManager,
            saveAsIcon,
            new String[] { "org.jamesii.menu.main/org.jamesii.file?after=org.jamesii.save" },
            null, null, null));

    actions
        .add(new SeparatorAction(
            "org.jamesii.file.additionals1",
            new String[] { "org.jamesii.menu.main/org.jamesii.file?after=org.jamesii.saveas" },
            null));

    actions.add(new SeparatorAction("org.jamesii.toolbar.edit",
        new String[] { "org.jamesii.toolbar.main?after=org.jamesii.save" },
        null));

    actions.add(new ActionIAction(new UndoAction(windowManager),
        "org.jamesii.undo", new String[] {
            "org.jamesii.toolbar.main?after=org.jamesii.toolbar.edit",
            "org.jamesii.menu.main/org.jamesii.edit?first" }, null));

    actions.add(new ActionIAction(new RedoAction(windowManager),
        "org.jamesii.redo", new String[] {
            "org.jamesii.toolbar.main?after=org.jamesii.undo",
            "org.jamesii.menu.main/org.jamesii.edit?after=org.jamesii.undo" },
        null));

    actions.add(new SeparatorAction("org.jamesii.toolbar.additionals",
        new String[] { "org.jamesii.toolbar.main?after=org.jamesii.redo" },
        null));
    actions
        .add(new SeparatorAction(
            "org.jamesii.edit.additionals",
            new String[] { "org.jamesii.menu.main/org.jamesii.edit?after=org.jamesii.redo" },
            null));

    actions.add(new ActionSet("org.jamesii.help", "Help",
        "org.jamesii.menu.main?last", null));

    actions.add(new AbstractAction("org.jamesii.showSystemInfo",
        "Show System Information",
        new String[] { "org.jamesii.menu.main/org.jamesii.help?first" }, null) {
View Full Code Here

    String[] openExpPaths =
        new String[] {
            "org.jamesii.menu.main/org.jamesii.file/org.jamesii.open",
            "org.jamesii.toolbar.main/org.jamesii.open" };
    actions.add(new ActionSet("org.jamesii.open.experiment", "Experiment",
        openExpPaths, null));

    String[] openExpSuitePaths =
        new String[] {
            "org.jamesii.menu.main/org.jamesii.file/org.jamesii.open",
            "org.jamesii.toolbar.main/org.jamesii.open" };
    actions.add(new ActionSet("org.jamesii.open.experimentsuite",
        "Experiment Suite", openExpSuitePaths, null));

    try {
      ParameterBlock paramBlock =
          FactoryParameterDialogParameter.getParameterBlock(
View Full Code Here

TOP

Related Classes of org.jamesii.gui.application.action.ActionSet

Copyright © 2018 www.massapicom. 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.