| java.lang.Object org.eclipse.ui.internal.ActionDescriptor
ActionDescriptor | public class ActionDescriptor implements IPluginContribution(Code) | | When 'action' tag is found in the registry, an object of this
class is created. It creates the appropriate action object
and captures information that is later used to add this action
object into menu/tool bar. This class is reused for
global (workbench) menu/tool bar, popup menu actions,
as well as view's pulldown and local tool bar.
|
Constructor Summary | |
public | ActionDescriptor(IConfigurationElement actionElement, int targetType) Creates a new descriptor with the specified target. | public | ActionDescriptor(IConfigurationElement actionElement, int targetType, Object target) Creates a new descriptor with the target and destination workbench part
it will go into. |
STYLE_PULLDOWN | final public static String STYLE_PULLDOWN(Code) | | Pulldown style constant. Value pulldown .
|
STYLE_PUSH | final public static String STYLE_PUSH(Code) | | Push style constant. Value push .
|
STYLE_RADIO | final public static String STYLE_RADIO(Code) | | Radio style constant. Value radio .
|
STYLE_TOGGLE | final public static String STYLE_TOGGLE(Code) | | Toggle style constant. Value toggle .
|
T_EDITOR | final public static int T_EDITOR(Code) | | Editor constant. Value 0x4 .
|
T_POPUP | final public static int T_POPUP(Code) | | Popup constant. Value 0x1 .
|
T_VIEW | final public static int T_VIEW(Code) | | View constant. Value 0x2 .
|
T_WORKBENCH | final public static int T_WORKBENCH(Code) | | Workbench constant. Value 0x3 .
|
T_WORKBENCH_PULLDOWN | final public static int T_WORKBENCH_PULLDOWN(Code) | | Workbench pulldown constant. Value 0x5 .
|
ActionDescriptor | public ActionDescriptor(IConfigurationElement actionElement, int targetType)(Code) | | Creates a new descriptor with the specified target.
Parameters: actionElement - the configuration element Parameters: targetType - the type of action |
ActionDescriptor | public ActionDescriptor(IConfigurationElement actionElement, int targetType, Object target)(Code) | | Creates a new descriptor with the target and destination workbench part
it will go into.
Parameters: actionElement - the configuration element Parameters: targetType - the type of action Parameters: target - the target object |
getAction | public PluginAction getAction()(Code) | | Returns the action object held in this descriptor.
the action |
getId | public String getId()(Code) | | Returns action's id as defined in the registry.
the id |
getMenuGroup | public String getMenuGroup()(Code) | | Returns named slot (group) in the menu where this action
should be added.
the menu group |
getMenuPath | public String getMenuPath()(Code) | | Returns menu path where this action should be added. If null,
the action will not be added into the menu.
the menubar path |
getToolbarGroupId | public String getToolbarGroupId()(Code) | | Returns the named slot (group) in the tool bar where this
action should be added.
the toolbar group id |
getToolbarId | public String getToolbarId()(Code) | | Returns id of the tool bar where this action should be added.
If null, action will not be added to the tool bar.
the toolbar id |
|
|