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
ConstructorsModifierConstructorDescriptionprotectedConstructor for use by subclasses.protectedAbstractGroupMarker(String groupName) Create a new group marker with the given name. -
Method Summary
Modifier and TypeMethodDescriptionReturns the group name.booleanAlways returnfalseas group markers (including separators) are only there for visual separation, not meant to be actionable.booleanTheAbstractGroupMarkerimplementation 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 Details
-
AbstractGroupMarker
protected AbstractGroupMarker()Constructor for use by subclasses. -
AbstractGroupMarker
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 Details
-
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:
-