Package org.freeplane.core.ui.components

Examples of org.freeplane.core.ui.components.FreeplaneMenuBar


    return mapsPopupMenu;
  }

  public FreeplaneMenuBar getMenuBar() {
    if (menuBar == null) {
      menuBar = new FreeplaneMenuBar();
    }
    return menuBar;
  }
View Full Code Here


      if (ribbonStructure != null) {
        getMenuBuilder(RibbonBuilder.class).updateRibbon(ribbonStructure);
      }
    }
    else {
      final FreeplaneMenuBar menuBar = getMenuBar();
      getMenuBuilder(MenuBuilder.class).addMenuBar(menuBar, FreeplaneMenuBar.MENU_BAR_PREFIX);
      getMenuBuilder(MenuBuilder.class).addToolbar((JToolBar) getToolBar("/main_toolbar"), "/main_toolbar");
      final URL menuStructure = ResourceController.getResourceController().getResource(menuStructureResource);
      loadStructure(plugins, menuStructure);
      final URL toolbarStructure = ResourceController.getResourceController().getResource(menuStructureResource.replace("menu.xml", "toolbar.xml"));
View Full Code Here

      if (super.processKeyBinding(ks, e, condition, pressed)) {
        return true;
      }
      if(containsModifierKeyCode(ks))
        return false;
      final FreeplaneMenuBar freeplaneMenuBar = Controller.getCurrentController().getViewController()
          .getFreeplaneMenuBar();
      return freeplaneMenuBar.processKeyBinding(ks, e, JComponent.WHEN_IN_FOCUSED_WINDOW, pressed);
    }
View Full Code Here

  protected boolean processKeyBinding(final KeyStroke ks, final KeyEvent e, final int condition, final boolean pressed) {
    if (super.processKeyBinding(ks, e, condition, pressed)) {
      return true;
    }
    final MapView mapView = (MapView) SwingUtilities.getAncestorOfClass(MapView.class, this);
    final FreeplaneMenuBar freeplaneMenuBar = mapView.getModeController().getController().getViewController()
        .getFreeplaneMenuBar();
    return !freeplaneMenuBar.isVisible()
            && freeplaneMenuBar.processKeyBinding(ks, e, JComponent.WHEN_IN_FOCUSED_WINDOW, pressed);
  }
View Full Code Here

TOP

Related Classes of org.freeplane.core.ui.components.FreeplaneMenuBar

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.