/** * Gets the name of the action. This is the name * that will be used for the menu item text etc. */ public String getName() { return PluginUtilities.getAttribute(extension, ProtegeActionPluginJPFImpl.NAME_PARAM); }
/** * Gets the tooltip text for the action. * @return A <code>String</code> representing the tooltip * text, or <code>null</code> if the action created by this * plugin shouldn't have any tooltip text. */ public String getToolTipText() { return PluginUtilities.getAttribute(extension, TOOL_TIP_PARAM); }
/** * Gets the tooltip text for the action. * @return A <code>String</code> representing the tooltip * text, or <code>null</code> if the action created by this * plugin shouldn't have any tooltip text. */ public String getToolTipText() { return PluginUtilities.getAttribute(extension, ProtegeActionPluginJPFImpl.TOOL_TIP_PARAM); }
/** * Gets the tooltip text for the action. * @return A <code>String</code> representing the tooltip * text, or <code>null</code> if the action created by this * plugin shouldn't have any tooltip text. */ public String getToolTipText() { return PluginUtilities.getAttribute(extension, ProtegeActionPluginJPFImpl.TOOL_TIP_PARAM); }
/** * Gets the <code>EditorKitFactory</code> label. This is * typically used for UI menu items etc. */ public String getLabel() { String param = PluginUtilities.getAttribute(extension, LABEL_PARAM); if (param == null) { return "<Error: Label not defined!> " + extension; } return param; }
/** * Gets the name of the action. This is the name * that will be used for the menu item text etc. */ public String getName() { return PluginUtilities.getAttribute(extension, NAME_PARAM); }
/** * Gets the name of the action. This is the name * that will be used for the menu item text etc. */ public String getName() { return PluginUtilities.getAttribute(extension, ProtegeActionPluginJPFImpl.NAME_PARAM); }
/** * Gets the <code>EditorKitFactory</code> label. This is * typically used for UI menu items etc. */ public String getLabel() { String param = PluginUtilities.getAttribute(extension, LABEL_PARAM); if (param == null) { return "<Error: Label not defined!> " + extension; } return param; }
/** * Gets the name of the action. This is the name * that will be used for the menu item text etc. */ public String getName() { String name = PluginUtilities.getAttribute(extension, NAME_PARAM); if (name != null && name.contains("\\u")) { name = decode(name); } return name; }
public String getAccelerator() { return PluginUtilities.getAttribute(getIExtension(), "accelerator"); } }
public Object getExtensionObject(IExtension ext, String property) throws InstantiationException, IllegalAccessException, ClassNotFoundException { Bundle b = getBundle(ext); return b.loadClass(getAttribute(ext, property)).newInstance(); // return config.createExecutableExtension(property); }
public Object getExtensionObject(IExtension ext, String property) throws InstantiationException, IllegalAccessException, ClassNotFoundException { Bundle b = getBundle(ext); return b.loadClass(getAttribute(ext, property)).newInstance(); // return config.createExecutableExtension(property); }
/** * Gets the tooltip text for the action. * @return A <code>String</code> representing the tooltip * text, or <code>null</code> if the action created by this * plugin shouldn't have any tooltip text. */ public String getToolTipText() { String tooltip = PluginUtilities.getAttribute(extension, TOOL_TIP_PARAM); if (tooltip != null && tooltip.contains("\\u")) { tooltip = decode(tooltip); } return tooltip; }
public Object getExtensionObject(IExtension ext, String property) throws InstantiationException, IllegalAccessException, ClassNotFoundException { Bundle b = getBundle(ext); return b.loadClass(getAttribute(ext, property)).newInstance(); // return config.createExecutableExtension(property); }
public static String getParameterValue(IExtension ext, String key, String defaultValue) { String val = PluginUtilities.getAttribute(ext, key); if (val == null) { return defaultValue; } if (isProtegeProperty(val)) { return getProtegeProperty(val); } else { return val; } }
public static String getParameterValue(IExtension ext, String key, String defaultValue) { String val = PluginUtilities.getAttribute(ext, key); if (val == null) { return defaultValue; } if (isProtegeProperty(val)) { return getProtegeProperty(val); } else { return val; } }
public MoveAxiomsKit newInstance() throws InstantiationException, ClassNotFoundException, IllegalAccessException { ExtensionInstantiator<MoveAxiomsKit> instantiator = new ExtensionInstantiator<>(extension); MoveAxiomsKit kit = instantiator.instantiate(); kit.setup(extension.getUniqueIdentifier(), PluginUtilities.getAttribute(extension, "name"), editorKit); return kit; } }
public MoveAxiomsKit newInstance() throws InstantiationException, ClassNotFoundException, IllegalAccessException { ExtensionInstantiator<MoveAxiomsKit> instantiator = new ExtensionInstantiator<MoveAxiomsKit>(extension); MoveAxiomsKit kit = instantiator.instantiate(); kit.setup(extension.getUniqueIdentifier(), PluginUtilities.getAttribute(extension, "name"), editorKit); return kit; } }
public MoveAxiomsKit newInstance() throws InstantiationException, ClassNotFoundException, IllegalAccessException { ExtensionInstantiator<MoveAxiomsKit> instantiator = new ExtensionInstantiator<MoveAxiomsKit>(extension); MoveAxiomsKit kit = instantiator.instantiate(); kit.setup(extension.getUniqueIdentifier(), PluginUtilities.getAttribute(extension, "name"), editorKit); return kit; } }
public MoveAxiomsKit newInstance() throws InstantiationException, ClassNotFoundException, IllegalAccessException { ExtensionInstantiator<MoveAxiomsKit> instantiator = new ExtensionInstantiator<>(extension); MoveAxiomsKit kit = instantiator.instantiate(); kit.setup(extension.getUniqueIdentifier(), PluginUtilities.getAttribute(extension, "name"), editorKit); return kit; } }