Examples of IFreeplaneAction


Examples of org.freeplane.core.ui.IFreeplaneAction

      final MenuBuilder menuBuilder = modeController.getUserInputListenerFactory().getMenuBuilder(MenuBuilder.class);
      menuBuilder.removeChildElements(MENU_CATEGORY);
      List<AFreeplaneAction> openMapActions = createOpenLastMapActionList();
      for(AFreeplaneAction openMapAction:openMapActions)
      {
        final IFreeplaneAction acceleratableAction = menuBuilder.acceleratableAction(openMapAction);
        final JMenuItem item = new JFreeplaneMenuItem(acceleratableAction);
        item.setMnemonic(0);
        menuBuilder.addMenuItem(MENU_CATEGORY, item, MENU_CATEGORY + '/' + openMapAction.getKey(),
            UIBuilder.AS_CHILD);
      }
View Full Code Here

Examples of org.freeplane.core.ui.IFreeplaneAction

                                                               final HashMap<String, KeyStroke> menuKeyToKeyStrokeMap) {
    final IndexedTree.Node node = (Node) menuNode;
    final Object userObject = menuNode.getUserObject();
    if (userObject instanceof JMenuItem) {
      final JMenuItem jMenuItem = (JMenuItem) userObject;
      final IFreeplaneAction action = (IFreeplaneAction) jMenuItem.getAction();
      final String key = String.valueOf(node.getKey());
      final String iconKey = action == null ? null : action.getIconKey();
      return new DefaultMutableTreeNode(new MenuEntry(key, jMenuItem.getText(), iconKey, menuKeyToKeyStrokeMap
          .get(key), jMenuItem.getToolTipText()));
    }
    // the other expected types are String and javax.swing.JPopupMenu.Separator
    // - just omit them
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.