Package org.eclipse.ui.internal
Class ActionSetSeparator
java.lang.Object
org.eclipse.jface.action.ContributionItem
org.eclipse.ui.internal.ActionSetSeparator
- All Implemented Interfaces:
IContributionItem,IActionSetContributionItem
This class represents a pseudo-group defined by an action set. It is not a
real group ( aka GroupMarker ) because that would interfere with the
pre-existing groups in a menu or toolbar.
-
Constructor Summary
ConstructorsConstructorDescriptionActionSetSeparator(String groupName, String newActionSetId) Constructs a new group marker. -
Method Summary
Modifier and TypeMethodDescriptionvoidThe default implementation of thisIContributionItemmethod does nothing.voidThe default implementation of thisIContributionItemmethod does nothing.Returns the action set id.booleanTheSeparatorimplementation of thisIContributionItemmethod returnstruevoidsetActionSetId(String newActionSetId) Sets the action set id.Methods inherited from class org.eclipse.jface.action.ContributionItem
dispose, fill, fill, getId, getParent, isDirty, isDynamic, isEnabled, isGroupMarker, isVisible, saveWidgetState, setId, setParent, setVisible, toString, update, update
-
Constructor Details
-
ActionSetSeparator
Constructs a new group marker.
-
-
Method Details
-
fill
Description copied from class:ContributionItemThe default implementation of thisIContributionItemmethod does nothing. Subclasses may override.- Specified by:
fillin interfaceIContributionItem- Overrides:
fillin classContributionItem- Parameters:
menu- the parent menuindex- the index where the controls are inserted, or-1to insert at the end
-
fill
Description copied from class:ContributionItemThe default implementation of thisIContributionItemmethod does nothing. Subclasses may override.- Specified by:
fillin interfaceIContributionItem- Overrides:
fillin classContributionItem- Parameters:
toolbar- the parent tool barindex- the index where the controls are inserted, or-1to insert at the end
-
getActionSetId
Returns the action set id.- Specified by:
getActionSetIdin interfaceIActionSetContributionItem
-
isSeparator
public boolean isSeparator()TheSeparatorimplementation of thisIContributionItemmethod returnstrue- Specified by:
isSeparatorin interfaceIContributionItem- Overrides:
isSeparatorin classContributionItem- Returns:
trueif this item is a separator, andfalsefor normal items- See Also:
-
setActionSetId
Sets the action set id.- Specified by:
setActionSetIdin interfaceIActionSetContributionItem
-