Package org.freeplane.core.ui

Examples of org.freeplane.core.ui.IMenuContributor


      public void onViewRemoved(Container nodeView) {
      }

    });
   
    modeController.addMenuContributor(new IMenuContributor() {
      public void updateMenus(ModeController modeController, MenuBuilder builder) {
        final String MENU_PROJECT_KEY = "/menu_bar/project";
        //insert project menu into main menu
        JMenu projectMenu = new JMenu(TextUtils.getText("menu.project.entry.label"));
        projectMenu.setMnemonic('o');       
View Full Code Here


   *
   */
  public ReminderHook(ModeController modeController){
    super();
    this.modeController = modeController;
    modeController.addMenuContributor(new IMenuContributor() {
      public void updateMenus(ModeController modeController, MenuBuilder builder) {
        createTimePanel();
      }
    });
    registerAction(new TimeManagementAction(this));
View Full Code Here

    UITools.addScrollbarIncrementPropertyListener(iconToolBarScrollPane);
    FrameController frameController = (FrameController) modeController.getController().getViewController();
    iconBox = new CollapseableBoxBuilder(frameController).setPropertyNameBase("leftToolbarVisible").setResizeable(false).createBox(iconToolBarScrollPane, Direction.LEFT);
    createIconActions(modeController);
    createPreferences();
    modeController.addMenuContributor(new IMenuContributor() {
      public void updateMenus(final ModeController modeController, MenuBuilder builder) {
        MIconController.this.updateMenus(modeController, builder);
        updateIconToolbar(modeController);
      }
    });
View Full Code Here

          @Override
                public void installExtension(ModeController modeController) {
            final MenuBuilder menuBuilder = modeController.getUserInputListenerFactory().getMenuBuilder(MenuBuilder.class);
            final $$$$Action action = new $$$$Action();
          modeController.addAction(action);
            modeController.addMenuContributor(new IMenuContributor() {
            @Override
            public void updateMenus(ModeController modeController, MenuBuilder builder) {
                menuBuilder.addAction("/menu_bar/file", action, MenuBuilder.AS_CHILD);
            }
          });
View Full Code Here

TOP

Related Classes of org.freeplane.core.ui.IMenuContributor

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.