org.eclipse.jface.action
Class Separator
java.lang.Object
|
+--org.eclipse.jface.action.ContributionItem
|
+--org.eclipse.jface.action.AbstractGroupMarker
|
+--org.eclipse.jface.action.Separator
- All Implemented Interfaces:
- IContributionItem
- public class Separator
- extends AbstractGroupMarker
A separator is a special kind of contribution item which acts
as a visual separator and, optionally, acts as a group marker.
Unlike group markers, separators do have a visual representation.
This class may be instantiated; it is not intended to be
subclassed outside the framework.
Constructor Summary |
Separator()
Creates a separator which does not start a new group. |
Separator(String groupName)
Creates a new separator which also defines a new group having the given group name. |
Method Summary |
void |
fill(Menu menu,
int index)
The default implementation of this IContributionItem
method does nothing. |
void |
fill(ToolBar toolbar,
int index)
The default implementation of this IContributionItem
method does nothing. |
boolean |
isSeparator()
The Separator implementation of this IContributionItem
method returns true |
Methods inherited from class org.eclipse.jface.action.ContributionItem |
dispose, fill, getId, getParent, isDirty, isDynamic, isEnabled, isVisible, setParent, setVisible, toString, update, update |
Separator
public Separator()
- Creates a separator which does not start a new group.
Separator
public Separator(String groupName)
- Creates a new separator which also defines a new group having the given group 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 group name of the separator
fill
public void fill(Menu menu,
int index)
- Description copied from class:
ContributionItem
- The default implementation of this
IContributionItem
method does nothing. Subclasses may override.
- Overrides:
fill
in class ContributionItem
- Following copied from interface:
org.eclipse.jface.action.IContributionItem
- Parameters:
parent
- the parent menuindex
- the index where the controls are inserted,
or -1
to insert at the end
fill
public void fill(ToolBar toolbar,
int index)
- Description copied from class:
ContributionItem
- The default implementation of this
IContributionItem
method does nothing. Subclasses may override.
- Overrides:
fill
in class ContributionItem
- Following copied from interface:
org.eclipse.jface.action.IContributionItem
- Parameters:
parent
- the parent tool barindex
- the index where the controls are inserted,
or -1
to insert at the end
isSeparator
public boolean isSeparator()
- The
Separator
implementation of this IContributionItem
method returns true
- Overrides:
isSeparator
in class ContributionItem
- Following copied from interface:
org.eclipse.jface.action.IContributionItem
- Returns:
true
if this item is a separator, and
false
for normal items- See Also:
Separator
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.