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, isGroupMarker
public 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)
ContributionItem
IContributionItem
method does nothing. Subclasses may override.fill
in interface IContributionItem
fill
in class ContributionItem
menu
- the parent menuindex
- the index where the controls are inserted,
or -1
to insert at the endpublic void fill(ToolBar toolbar, int index)
ContributionItem
IContributionItem
method does nothing. Subclasses may override.fill
in interface IContributionItem
fill
in class ContributionItem
toolbar
- 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 true
isSeparator
in interface IContributionItem
isSeparator
in class ContributionItem
true
if this item is a separator, and
false
for normal itemsSeparator
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.