Package org.freeplane.features.mode.mindmapmode

Examples of org.freeplane.features.mode.mindmapmode.MModeController


    return modeController;
  }

  private void createStandardControllers() {
    final Controller controller = Controller.getCurrentController();
    modeController = new MModeController(controller);
    final UserInputListenerFactory userInputListenerFactory = new UserInputListenerFactory(modeController, UITools.useRibbonsMenu());

        final IMouseListener nodeMouseMotionListener = new MNodeMotionListener();
        userInputListenerFactory.setNodeMouseMotionListener(nodeMouseMotionListener);
    final JPopupMenu popupmenu = new JPopupMenu();
View Full Code Here


    }
    if (null != controller.getMap()) {
      return;
    }
    controller.selectMode(MModeController.MODENAME);
    final MModeController modeController = (MModeController) controller.getModeController();
    MFileManager.getController(modeController).newMapFromDefaultTemplate();
  }
View Full Code Here

            fileArgument = System.getProperty("user.dir") + System.getProperty("file.separator") + fileArgument;
          }
          url = Compat.fileToUrl(new File(fileArgument));
          if (url.getPath().toLowerCase().endsWith(
            org.freeplane.features.url.UrlManager.FREEPLANE_FILE_EXTENSION)) {
            final MModeController modeController = (MModeController) controller.getModeController();
            MapController mapController = modeController.getMapController();
            mapController.openMapSelectReferencedNode(url);
          }
        }
      }
      catch (final Exception ex) {
View Full Code Here

  }

  @Override
    protected IExtension toggle(NodeModel node, IExtension extension) {
    extension = super.toggle(node, extension);
      final MModeController modeController = (MModeController) Controller.getCurrentModeController();
      if(modeController.isUndoAction()){
        return extension;
      }
      LogicalStyleController.getController().refreshMap(node.getMap());
      return extension;
    }
View Full Code Here

  }

  public void deactivateUndo() {
    final MapModel map = Controller.getCurrentController().getMap();
    if (map instanceof MapModel) {
      MModeController modeController = ((MModeController) Controller.getCurrentModeController());
      modeController.deactivateUndo((MMapModel) map);
    }
  }
View Full Code Here

    return modeController;
  }

  private void createStandardControllers() {
    final Controller controller = Controller.getCurrentController();
    modeController = new MModeController(controller);
    controller.addModeController(modeController);
    controller.selectModeForBuild(modeController);
    new MMapController(modeController);
    final MFileManager fileManager = new MFileManager();
    UrlManager.install(fileManager);
View Full Code Here

      singleBackupDirectory = new File(value);
    }
  }

  private void createPreferences() {
    final MModeController modeController = (MModeController) Controller.getCurrentModeController();
    final OptionPanelBuilder optionPanelBuilder = modeController.getOptionPanelBuilder();
    optionPanelBuilder.addCreator("Environment/load", new IPropertyControlCreator() {
      public IPropertyControl createControl() {
        final Set<String> charsets = Charset.availableCharsets().keySet();
        final LinkedList<String> charsetList = new LinkedList<String>(charsets);
        charsetList.addFirst("JVMdefault");
View Full Code Here

      iconActions.put(icon, myAction);
    }
  }

  private void createPreferences() {
    final MModeController modeController = (MModeController) Controller.getCurrentModeController();
    final OptionPanelBuilder optionPanelBuilder = modeController.getOptionPanelBuilder();
    final List<AFreeplaneAction> actions = new ArrayList<AFreeplaneAction>();
    actions.addAll(iconActions.values());
    actions.add(modeController.getAction("RemoveIcon_0_Action"));
    actions.add(modeController.getAction("RemoveIconAction"));
    actions.add(modeController.getAction("RemoveAllIconsAction"));

    for (final AFreeplaneAction iconAction : actions) {
      final IIconInformation info = (IIconInformation) iconAction;
      optionPanelBuilder.addCreator("Keystrokes/icons", new IPropertyControlCreator() {
        public IPropertyControl createControl() {
View Full Code Here

        private void addPreferencesToOptionPanel() {
          final URL preferences = this.getClass().getResource(PREFERENCES_RESOURCE);
          if (preferences == null)
            throw new RuntimeException("cannot open preferences");
          final Controller controller = Controller.getCurrentController();
          MModeController modeController = (MModeController) controller.getModeController();
          modeController.getOptionPanelBuilder().load(preferences);
        }
        }, props);
  }
View Full Code Here

                    result.addWarning(TextUtils.getText("OptionPanel.validate_write_without_read"));
                }
                return result;
            }
        });
        final MModeController modeController = (MModeController) Controller.getCurrentModeController();
        modeController.getOptionPanelBuilder().load(preferences);
    }
View Full Code Here

TOP

Related Classes of org.freeplane.features.mode.mindmapmode.MModeController

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.