public abstract class AbstractGroupMarker extends ContributionItem
This class is not intended to be subclassed outside the framework.
Modifier | Constructor and Description |
---|---|
protected |
AbstractGroupMarker()
Constructor for use by subclasses.
|
protected |
AbstractGroupMarker(String groupName)
Create a new group marker with the given name.
|
Modifier and Type | Method and Description |
---|---|
String |
getGroupName()
Returns the group name.
|
boolean |
isEnabled()
Always return
false as group markers (including separators)
are only there for visual separation, not meant to be actionable. |
boolean |
isGroupMarker()
The
AbstractGroupMarker implementation of this
IContributionItem method returns true iff the
id is not null . |
dispose, fill, fill, fill, fill, getId, getParent, isDirty, isDynamic, isSeparator, isVisible, saveWidgetState, setId, setParent, setVisible, toString, update, update
protected AbstractGroupMarker()
protected AbstractGroupMarker(String groupName)
null
or the empty string.
The group name is also used as the item id.groupName
- the name of the grouppublic String getGroupName()
public boolean isEnabled()
false
as group markers (including separators)
are only there for visual separation, not meant to be actionable.isEnabled
in interface IContributionItem
isEnabled
in class ContributionItem
true
if this item is enabledpublic boolean isGroupMarker()
AbstractGroupMarker
implementation of this
IContributionItem
method returns true
iff the
id is not null
. Subclasses may override.isGroupMarker
in interface IContributionItem
isGroupMarker
in class ContributionItem
true
if this item is a group marker, and
false
for normal itemsGroupMarker
,
IContributionManager.appendToGroup(String, IContributionItem)
,
IContributionManager.prependToGroup(String, IContributionItem)
Copyright (c) 2000, 2017 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.