private static boolean isPopupMenuItem(MenuActionPlugin plugin) { String parentId = plugin.getParentId(); return parentId != null && PopupMenuId.isPopupMenuId(parentId); }
@Override public String toString() { return "[Menu: " + getName() + " -- <" + getGroup() + ", " + getGroupIndex() + ">]"; } }
public MenuActionPluginJPFImpl(EditorKit editorKit, IExtension extension) { super(editorKit, extension); parse(); }
private Map<String, MenuActionPlugin> getPlugins() { // Create a map to hold the results in. This maps menu plugin ids to their // menus so that we can form an ordering of parent child menu plugins Map<String, MenuActionPlugin> result = new HashMap<String, MenuActionPlugin>(); MenuActionPluginLoader pluginLoader = new MenuActionPluginLoader(editorKit); for (MenuActionPlugin plugin : pluginLoader.getPlugins()) { result.put(plugin.getId(), plugin); } return result; }
public MenuButton() { super(MenuIcon.getGrayIcon()); setBackground(null); setBorder(null); setCursor(getPredefinedCursor(HAND_CURSOR)); setRolloverEnabled(true); setRolloverIcon(MenuIcon.getDarkGrayIcon()); } }
private String getPath() { // The path corresponds to the path parameter value. return getPluginProperty(PATH_PARAM, SEPARATOR); }
@Override protected MenuActionPlugin createInstance(IExtension extension) { return new MenuActionPluginJPFImpl(editorKit, extension); }
@Override public void setMenuEnabled(boolean enabled) { menuButton.setEnabled(enabled); }
@Override public void setMenuVisible(boolean visible) { menuButton.setVisible(visible); }
@Override public String toString() { return "[Menu: " + getName() + " -- <" + getGroup() + ", " + getGroupIndex() + ">]"; } }
private Map<String, MenuActionPlugin> getPlugins() { // Create a map to hold the results in. This maps menu plugin ids to their // menus so that we can form an ordering of parent child menu plugins Map<String, MenuActionPlugin> result = new HashMap<String, MenuActionPlugin>(); MenuActionPluginLoader pluginLoader = new MenuActionPluginLoader(editorKit); for (MenuActionPlugin plugin : pluginLoader.getPlugins()) { result.put(plugin.getId(), plugin); } return result; }
private String getPath() { // The path corresponds to the path parameter value. return getPluginProperty(PATH_PARAM, SEPARATOR); }
public MenuActionPluginJPFImpl(EditorKit editorKit, IExtension extension) { super(editorKit, extension); parse(); }
@Override protected MenuActionPlugin createInstance(IExtension extension) { return new MenuActionPluginJPFImpl(editorKit, extension); }
private boolean isClassSpecified(){ return getPluginProperty(PluginProperties.CLASS_PARAM_NAME) != null; }
public MenuActionPluginJPFImpl(EditorKit editorKit, IExtension extension) { super(editorKit, extension); parse(); }
@Override protected MenuActionPlugin createInstance(IExtension extension) { return new MenuActionPluginJPFImpl(editorKit, extension); }
private String getPath() { // The path corresponds to the path parameter value. return getPluginProperty(PATH_PARAM, SEPARATOR); }
private boolean isClassSpecified(){ return getPluginProperty(PluginProperties.CLASS_PARAM_NAME) != null; }
private boolean isClassSpecified(){ return getPluginProperty(PluginProperties.CLASS_PARAM_NAME) != null; }