public class Separator extends AbstractGroupMarker
This class may be instantiated; it is not intended to be subclassed outside the framework.
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
getGroupName, isGroupMarkerpublic Separator()
public Separator(String groupName)
null or the empty string.
The group name is also used as the item id.groupName - the group name of the separatorpublic void fill(Menu menu, int index)
ContributionItemIContributionItem
method does nothing. Subclasses may override.fill in interface IContributionItemfill in class ContributionItemmenu - the parent menuindex - the index where the controls are inserted,
or -1 to insert at the endpublic void fill(ToolBar toolbar, int index)
ContributionItemIContributionItem
method does nothing. Subclasses may override.fill in interface IContributionItemfill in class ContributionItemtoolbar - the parent tool barindex - the index where the controls are inserted,
or -1 to insert at the endpublic boolean isSeparator()
Separator implementation of this IContributionItem
method returns trueisSeparator in interface IContributionItemisSeparator in class ContributionItemtrue if this item is a separator, and
false for normal itemsSeparatorGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.