Examples of SetBooleanPropertyAction


Examples of org.freeplane.core.resources.SetBooleanPropertyAction

        try {
            AFreeplaneAction theAction = modeController.getAction(action);
          if (theAction == null) {
            if(action.startsWith("SetBooleanPropertyAction.")){
              String propertyName = action.substring("SetBooleanPropertyAction.".length());
              theAction = new SetBooleanPropertyAction(propertyName);
              modeController.addAction(theAction);
            }
            else{
                LogUtils.severe("action " + action + " not found");
                return null;
View Full Code Here

Examples of org.freeplane.core.resources.SetBooleanPropertyAction

        button.setCommandButtonKind(CommandButtonKind.POPUP_ONLY);
        button.setPopupCallback(new PopupPanelCallback() {
          public JPopupPanel getPopupPanel(JCommandButton commandButton) {
            JCommandPopupMenu popupmenu = new JCommandPopupMenu();
           
            final SetBooleanPropertyAction showAction = (SetBooleanPropertyAction) context.getBuilder().getMode().getAction("SetBooleanPropertyAction.show_node_tooltips");
              final JCommandToggleMenuButton showButton = RibbonActionContributorFactory.createCommandToggleMenuButton(showAction);
              showAction.setSelected();
              showButton.getActionModel().setSelected(showAction.isSelected());
              popupmenu.addMenuButton(showButton);
             
              final SetBooleanPropertyAction showStylesAction = (SetBooleanPropertyAction) context.getBuilder().getMode().getAction("SetBooleanPropertyAction.show_styles_in_tooltip");
              final JCommandToggleMenuButton showStylesButton = RibbonActionContributorFactory.createCommandToggleMenuButton(showStylesAction);
              showStylesAction.setSelected();
              showStylesButton.getActionModel().setSelected(showStylesAction.isSelected());
              popupmenu.addMenuButton(showStylesButton);
             
              final AFreeplaneAction modificationAction = context.getBuilder().getMode().getAction("CreationModificationPluginAction");
              final JCommandToggleMenuButton modificationButton = RibbonActionContributorFactory.createCommandToggleMenuButton(modificationAction);
              modificationAction.setSelected();
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.