Package org.eclipse.ui.menus
Class CommandContributionItemParameter
java.lang.Object
org.eclipse.ui.menus.CommandContributionItemParameter
A help class for the various parameters that can be used with command
 contributions. Mandatory parameters are in the constructor, and public fields
 can be set to fill in other parameters.
- Since:
- 3.4
- 
Field SummaryFieldsModifier and TypeFieldDescriptionA command id for a defined command.A disabled icon for this item.The help context id to be applied to this contribution.A hover icon for this item.An icon for this item.The icon style to use.The id for this item.A label for this item.A mnemonic for this item to be applied to the label.intAny number of mode bits, likeCommandContributionItem.MODE_FORCE_TEXT.A map of strings to strings which represent parameter names to values.a service locator that is most appropriate for this contribution.intThe style of this menu contribution.A tooltip for this item.booleanThe visibility tracking for a menu contribution.
- 
Constructor SummaryConstructorsConstructorDescriptionCommandContributionItemParameter(IServiceLocator serviceLocator, String id, String commandId, int style) Create the parameter object.CommandContributionItemParameter(IServiceLocator serviceLocator, String id, String commandId, Map parameters, ImageDescriptor icon, ImageDescriptor disabledIcon, ImageDescriptor hoverIcon, String label, String mnemonic, String tooltip, int style, String helpContextId, boolean visibleEnabled) Build the parameter object.
- 
Method Summary
- 
Field Details- 
serviceLocatora service locator that is most appropriate for this contribution. Typically the localIWorkbenchWindoworIWorkbenchPartSitewill be sufficient. Must not benull.
- 
idThe id for this item. May benull. Items without an id cannot be referenced later.
- 
commandIdA command id for a defined command. Must not benull.
- 
parametersA map of strings to strings which represent parameter names to values. The parameter names must match those in the command definition. May benull
- 
iconAn icon for this item. May benull.
- 
disabledIconA disabled icon for this item. May benull.
- 
hoverIconA hover icon for this item. May benull.
- 
labelA label for this item. May benull.
- 
mnemonicA mnemonic for this item to be applied to the label. May benull.
- 
tooltipA tooltip for this item. May benull. Tooltips are currently only valid for toolbar contributions.
- 
stylepublic int styleThe style of this menu contribution. See the CommandContributionItem STYLE_* contants.
- 
helpContextIdThe help context id to be applied to this contribution. May benull
- 
iconStyleThe icon style to use. May benullfor default style.- See Also:
 
- 
visibleEnabledpublic boolean visibleEnabledThe visibility tracking for a menu contribution.
- 
modepublic int modeAny number of mode bits, likeCommandContributionItem.MODE_FORCE_TEXT.
 
- 
- 
Constructor Details- 
CommandContributionItemParameterpublic CommandContributionItemParameter(IServiceLocator serviceLocator, String id, String commandId, int style) Create the parameter object. Nullable attributes can be set directly.- Parameters:
- serviceLocator- a service locator that is most appropriate for this contribution. Typically the local- IWorkbenchWindowor- IWorkbenchPartSitewill be sufficient. Must not be- null.
- id- The id for this item. May be- null. Items without an id cannot be referenced later.
- commandId- A command id for a defined command. Must not be- null.
- style- The style of this menu contribution. See the STYLE_* contants.
 
- 
CommandContributionItemParameterpublic CommandContributionItemParameter(IServiceLocator serviceLocator, String id, String commandId, Map parameters, ImageDescriptor icon, ImageDescriptor disabledIcon, ImageDescriptor hoverIcon, String label, String mnemonic, String tooltip, int style, String helpContextId, boolean visibleEnabled) Build the parameter object.Note: This constructor should not be called outside the framework. - Parameters:
- serviceLocator- a service locator that is most appropriate for this contribution. Typically the local- IWorkbenchWindowor- IWorkbenchPartSitewill be sufficient. Must not be- null.
- id- The id for this item. May be- null. Items without an id cannot be referenced later.
- commandId- A command id for a defined command. Must not be- null.
- parameters- A map of strings to strings which represent parameter names to values. The parameter names must match those in the command definition. May be- null
- icon- An icon for this item. May be- null.
- disabledIcon- A disabled icon for this item. May be- null.
- hoverIcon- A hover icon for this item. May be- null.
- label- A label for this item. May be- null.
- mnemonic- A mnemonic for this item to be applied to the label. May be- null.
- tooltip- A tooltip for this item. May be- null. Tooltips are currently only valid for toolbar contributions.
- style- The style of this menu contribution. See the STYLE_* contants.
- helpContextId- the help context id to be applied to this contribution. May be- null
- visibleEnabled- Visibility tracking for the menu contribution.
- Restriction:
- This constructor is not intended to be referenced by clients.
 
 
-