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 protectedAbstractGroupMarker()Constructor for use by subclasses.protectedAbstractGroupMarker(String groupName)Create a new group marker with the given name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetGroupName()Returns the group name.booleanisEnabled()Always returnfalseas group markers (including separators) are only there for visual separation, not meant to be actionable.booleanisGroupMarker()TheAbstractGroupMarkerimplementation of thisIContributionItemmethod returnstrueiff 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 benullor 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 returnfalseas group markers (including separators) are only there for visual separation, not meant to be actionable.- Specified by:
isEnabledin interfaceIContributionItem- Overrides:
isEnabledin classContributionItem- Returns:
trueif this item is enabled
-
isGroupMarker
public boolean isGroupMarker()
TheAbstractGroupMarkerimplementation of thisIContributionItemmethod returnstrueiff the id is notnull. Subclasses may override.- Specified by:
isGroupMarkerin interfaceIContributionItem- Overrides:
isGroupMarkerin classContributionItem- Returns:
trueif this item is a group marker, andfalsefor normal items- See Also:
GroupMarker,IContributionManager.appendToGroup(String, IContributionItem),IContributionManager.prependToGroup(String, IContributionItem)
-
-