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
public abstract class AbstractGroupMarker extends ContributionItem
Abstract superclass for group marker classes.This class is not intended to be subclassed outside the framework.
- Restriction:
- This class is not intended to be subclassed by clients.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractGroupMarker()
Constructor for use by subclasses.protected
AbstractGroupMarker(String groupName)
Create a new group marker with the given name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getGroupName()
Returns the group name.boolean
isEnabled()
Always returnfalse
as group markers (including separators) are only there for visual separation, not meant to be actionable.boolean
isGroupMarker()
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 Detail
-
AbstractGroupMarker
protected AbstractGroupMarker()
Constructor for use by subclasses.
-
AbstractGroupMarker
protected AbstractGroupMarker(String groupName)
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 Detail
-
getGroupName
public String 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:
GroupMarker
,IContributionManager.appendToGroup(String, IContributionItem)
,IContributionManager.prependToGroup(String, IContributionItem)
-
-