|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.action.ContributionItem
org.eclipse.jface.action.AbstractGroupMarker
org.eclipse.jface.action.Separator
public class Separator
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 for menus and toolbars.
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(java.lang.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.AbstractGroupMarker |
|---|
getGroupName, isGroupMarker |
| Methods inherited from class org.eclipse.jface.action.ContributionItem |
|---|
dispose, fill, fill, getId, getParent, isDirty, isDynamic, isEnabled, isVisible, saveWidgetState, setId, setParent, setVisible, toString, update, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Separator()
public Separator(java.lang.String groupName)
null or the empty string.
The group name is also used as the item id.
groupName - the group name of the separator| Method Detail |
|---|
public 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 end
public 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 true
isSeparator in interface IContributionItemisSeparator in class ContributionItemtrue if this item is a separator, and
false for normal itemsSeparator
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.