Package org.eclipse.jface.action
Class AbstractGroupMarker
java.lang.Object
org.eclipse.jface.action.ContributionItem
org.eclipse.jface.action.AbstractGroupMarker
- All Implemented Interfaces:
IContributionItem
- Direct Known Subclasses:
GroupMarker
,Separator
Abstract superclass for group marker classes.
This class is not intended to be subclassed outside the framework.
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor for use by subclasses.protected
AbstractGroupMarker
(String groupName) Create a new group marker with the given name. -
Method Summary
Modifier and TypeMethodDescriptionReturns the group name.boolean
Always returnfalse
as group markers (including separators) are only there for visual separation, not meant to be actionable.boolean
TheAbstractGroupMarker
implementation of thisIContributionItem
method returnstrue
iff the id is notnull
.Methods inherited from class org.eclipse.jface.action.ContributionItem
dispose, fill, fill, fill, fill, getId, getParent, isDirty, isDynamic, isSeparator, isVisible, saveWidgetState, setId, setParent, setVisible, toString, update, update
-
Constructor Details
-
AbstractGroupMarker
protected AbstractGroupMarker()Constructor for use by subclasses. -
AbstractGroupMarker
Create a new group marker with the given name. The group name must not benull
or the empty string. The group name is also used as the item id.- Parameters:
groupName
- the name of the group
-
-
Method Details
-
getGroupName
Returns the group name.- Returns:
- the group name
-
isEnabled
public boolean isEnabled()Always returnfalse
as group markers (including separators) are only there for visual separation, not meant to be actionable.- Specified by:
isEnabled
in interfaceIContributionItem
- Overrides:
isEnabled
in classContributionItem
- Returns:
true
if this item is enabled
-
isGroupMarker
public boolean isGroupMarker()TheAbstractGroupMarker
implementation of thisIContributionItem
method returnstrue
iff the id is notnull
. Subclasses may override.- Specified by:
isGroupMarker
in interfaceIContributionItem
- Overrides:
isGroupMarker
in classContributionItem
- Returns:
true
if this item is a group marker, andfalse
for normal items- See Also:
-