Package org.eclipse.jface.action
Class GroupMarker
java.lang.Object
org.eclipse.jface.action.ContributionItem
org.eclipse.jface.action.AbstractGroupMarker
org.eclipse.jface.action.GroupMarker
- All Implemented Interfaces:
IContributionItem
- Direct Known Subclasses:
CoolItemGroupMarker
A group marker is a special kind of contribution item denoting
the beginning of a group. These groups are used to structure
the list of items. Unlike regular contribution items and
separators, group markers have no visual representation.
The name of the group is synonymous with the contribution item id.
This class may be instantiated; it is not intended to be subclassed outside the framework.
-
Constructor Summary
ConstructorDescriptionGroupMarker
(String groupName) Create a new group marker with the given name. -
Method Summary
Modifier and TypeMethodDescriptionboolean
TheGroupMarker
implementation of this method returnsfalse
since group markers are always invisible.Methods inherited from class org.eclipse.jface.action.AbstractGroupMarker
getGroupName, isEnabled, isGroupMarker
Methods inherited from class org.eclipse.jface.action.ContributionItem
dispose, fill, fill, fill, fill, getId, getParent, isDirty, isDynamic, isSeparator, saveWidgetState, setId, setParent, setVisible, toString, update, update
-
Constructor Details
-
GroupMarker
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
-
isVisible
public boolean isVisible()TheGroupMarker
implementation of this method returnsfalse
since group markers are always invisible.- Specified by:
isVisible
in interfaceIContributionItem
- Overrides:
isVisible
in classContributionItem
- Returns:
true
if this item is visible, andfalse
otherwise
-