|
Protege 4.1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.protege.editor.core.plugin.AbstractProtegePlugin<ProtegeAction>
org.protege.editor.core.ui.action.ProtegeActionPluginJPFImpl
org.protege.editor.core.ui.menu.MenuActionPluginJPFImpl
public class MenuActionPluginJPFImpl
Author: Matthew Horridge
The University Of Manchester
Medical Informatics Group
Date: Mar 27, 2006
MenuActionPlugin which uses
the Java Plugin Framework to provide the details of the plugin.
| Field Summary | |
|---|---|
static String |
EXTENSION_POINT_ID
|
| Fields inherited from class org.protege.editor.core.ui.action.ProtegeActionPluginJPFImpl |
|---|
NAME_PARAM, TOOL_TIP_PARAM |
| Constructor Summary | |
|---|---|
MenuActionPluginJPFImpl(EditorKit editorKit,
org.eclipse.core.runtime.IExtension extension)
|
|
| Method Summary | |
|---|---|
KeyStroke |
getAccelerator()
Gets the accelerator KeyStroke for the
menu item defined by this plugin. |
String |
getGroup()
Menu items can belong to groups. |
String |
getGroupIndex()
Within a menu item group, items are sorted according to the group index. |
String |
getParentId()
Gets the parent menu id. |
URL |
getURL()
|
boolean |
isCheckBox()
Determines if the menu item should be a JCheckBoxMenuItem. |
boolean |
isDynamic()
Determines if the menu is dynamically constructed after the plugin has been loaded. |
boolean |
isJCheckBox()
Deprecated. |
boolean |
isRadioButton()
Determines if the menu item is a JRadioButtomMenuItem. |
ProtegeAction |
newInstance()
Creates an instance of the plugin. |
String |
toString()
|
| Methods inherited from class org.protege.editor.core.ui.action.ProtegeActionPluginJPFImpl |
|---|
getEditorKit, getIcon, getName, getToolTipText |
| Methods inherited from class org.protege.editor.core.plugin.AbstractProtegePlugin |
|---|
getDocumentation, getId, getIExtension, getLabel, getPluginProperty, getPluginProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.protege.editor.core.ui.action.ProtegeActionPlugin |
|---|
getEditorKit, getIcon, getId, getName, getToolTipText |
| Methods inherited from interface org.protege.editor.core.plugin.ProtegePlugin |
|---|
getDocumentation |
| Field Detail |
|---|
public static final String EXTENSION_POINT_ID
| Constructor Detail |
|---|
public MenuActionPluginJPFImpl(EditorKit editorKit,
org.eclipse.core.runtime.IExtension extension)
| Method Detail |
|---|
public String getParentId()
MenuActionPluginProtegeActionPlugin that represents
the parent menu. If the parent id is an empty string
then this signifies a top level menu on the main menu
bar. If the parent
id is contained in square brackets (e.g. [parID])
then this signifies a top level menu item on some
popup menu.
getParentId in interface MenuActionPluginpublic String getGroup()
MenuActionPlugin
getGroup in interface MenuActionPluginString that represents the group
the menu item belongs to.public String getGroupIndex()
MenuActionPlugin
getGroupIndex in interface MenuActionPluginpublic KeyStroke getAccelerator()
MenuActionPluginKeyStroke for the
menu item defined by this plugin. If the menu item
does not have an accelerator KeyStroke
then this method returns null.
getAccelerator in interface MenuActionPluginpublic URL getURL()
public boolean isDynamic()
isDynamic in interface MenuActionPlugin@Deprecated public boolean isJCheckBox()
isJCheckBox in interface MenuActionPluginpublic boolean isCheckBox()
MenuActionPlugin
isCheckBox in interface MenuActionPluginpublic boolean isRadioButton()
MenuActionPlugin
isRadioButton in interface MenuActionPlugin
public ProtegeAction newInstance()
throws ClassNotFoundException,
IllegalAccessException,
InstantiationException
newInstance in interface ProtegePlugin<ProtegeAction>newInstance in class AbstractProtegePlugin<ProtegeAction>ClassNotFoundException
IllegalAccessException
InstantiationExceptionpublic String toString()
toString in class Object
|
Protege 4.1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||