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.
|
Method Summary |
String |
getGroupName()
Returns the group name. |
boolean |
isGroupMarker()
The AbstractGroupMarker implementation of this IContributionItem
method returns true iff the id is not null. |
| Methods inherited from class org.eclipse.jface.action.ContributionItem |
dispose, fill, fill, fill, getId, getParent, isDirty, isDynamic, isEnabled, isSeparator, isVisible, setParent, setVisible, toString, update, update |
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 be
null or the empty string.
The group name is also used as the item id.
- Parameters:
groupName - the name of the group
getGroupName
public String getGroupName()
- Returns the group name.
- Returns:
- the group name
isGroupMarker
public boolean isGroupMarker()
- The
AbstractGroupMarker implementation of this IContributionItem
method returns true iff the id is not null. Subclasses may override.
- Overrides:
isGroupMarker in class ContributionItem
- Following copied from interface:
org.eclipse.jface.action.IContributionItem
- Returns:
true if this item is a group marker, and
false for normal items- See Also:
GroupMarker,
IContributionManager.appendToGroup(java.lang.String, org.eclipse.jface.action.IAction),
IContributionManager.prependToGroup(java.lang.String, org.eclipse.jface.action.IAction)
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.