Package org.freeplane.core.ui

Examples of org.freeplane.core.ui.MenuBuilder.addAction()


        final String updateAvailable = TextUtils.format("new_version_available", lastVersion.toString());
        controller.getViewController().out(updateAvailable);
        putValue(SHORT_DESCRIPTION, updateAvailable);
        putValue(LONG_DESCRIPTION, updateAvailable);
        if (menuBuilder.get(UPDATE_BUTTON_PATH) == null) {
          menuBuilder.addAction(UPDATE_BUTTON_LOCATION, UPDATE_BUTTON_PATH, UpdateCheckAction.this,
              MenuBuilder.AS_CHILD);
        }
      }
    }
  }
View Full Code Here


          if (controller.getAction(key) == null) {
            final String title = TextUtils.getText(key + ".text", propName);
            final LoadAcceleratorPresetsAction loadAcceleratorPresetsAction = new LoadAcceleratorPresetsAction(
              prop.toURL(), key, title);
            controller.addAction(loadAcceleratorPresetsAction);
            menuBuilder.addAction("main_menu_new_load_accelerator_presets", key,
              loadAcceleratorPresetsAction, MenuBuilder.AS_CHILD);
          }
        }
        catch (final Exception e) {
          UITools.errorMessage(TextUtils.format("accelerators_loading_error", prop.getPath()));
View Full Code Here

            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);
            }
          });
          }
        /*TODO: further initializations*/}, props);
  }
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.