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
ConstructorDescriptionActionSetSeparator
(String groupName, String newActionSetId) Constructs a new group marker. -
Method Summary
Modifier and TypeMethodDescriptionvoid
The default implementation of thisIContributionItem
method does nothing.void
The default implementation of thisIContributionItem
method does nothing.Returns the action set id.boolean
TheSeparator
implementation of thisIContributionItem
method returnstrue
void
setActionSetId
(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:ContributionItem
The default implementation of thisIContributionItem
method does nothing. Subclasses may override.- Specified by:
fill
in interfaceIContributionItem
- Overrides:
fill
in classContributionItem
- Parameters:
menu
- the parent menuindex
- the index where the controls are inserted, or-1
to insert at the end
-
fill
Description copied from class:ContributionItem
The default implementation of thisIContributionItem
method does nothing. Subclasses may override.- Specified by:
fill
in interfaceIContributionItem
- Overrides:
fill
in classContributionItem
- Parameters:
toolbar
- the parent tool barindex
- the index where the controls are inserted, or-1
to insert at the end
-
getActionSetId
Returns the action set id.- Specified by:
getActionSetId
in interfaceIActionSetContributionItem
-
isSeparator
public boolean isSeparator()TheSeparator
implementation of thisIContributionItem
method returnstrue
- Specified by:
isSeparator
in interfaceIContributionItem
- Overrides:
isSeparator
in classContributionItem
- Returns:
true
if this item is a separator, andfalse
for normal items- See Also:
-
setActionSetId
Sets the action set id.- Specified by:
setActionSetId
in interfaceIActionSetContributionItem
-