|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.jface.action.AbstractAction
org.eclipse.jface.action.Action
de.cau.cs.kieler.sim.kiem.ui.DropDownAction
public class DropDownAction
The Class DropDownAction. This is a helper class that simplifies the creation of drop down actions, by adding simple Actions. A DropDownAction always has a default Action which it refers to in the standard behavior. It will always be displayed first in the list. The list can not only contain Actions but also Separators for example.
Field Summary |
---|
Fields inherited from interface org.eclipse.jface.action.IAction |
---|
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT |
Constructor Summary | |
---|---|
DropDownAction(Action defaultActionParam)
Instantiates a new drop down action. |
Method Summary | |
---|---|
void |
add(Action action)
Adds an Action to the DropDownAction. |
void |
add(IContributionItem contributionItem)
Adds a ContributionItem (e.g., a Separator) to the DropDownAction. |
protected void |
addActionToMenu(Menu parent,
Action action)
Adds an Action item to menu of the DropDownAction. |
protected void |
addContributionItemToMenu(Menu parent,
IContributionItem citem)
Adds an IContributionItem item to menu of the DropDownAction. |
void |
dispose()
|
Menu |
getMenu(Control parent)
|
Menu |
getMenu(Menu parent)
|
void |
run()
|
Methods inherited from class org.eclipse.jface.action.AbstractAction |
---|
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener |
Methods inherited from class org.eclipse.core.commands.common.EventManager |
---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.jface.action.IAction |
---|
addPropertyChangeListener, removePropertyChangeListener |
Constructor Detail |
---|
public DropDownAction(Action defaultActionParam)
defaultActionParam
- the default ActionMethod Detail |
---|
protected void addActionToMenu(Menu parent, Action action)
parent
- the parentaction
- the actionprotected void addContributionItemToMenu(Menu parent, IContributionItem citem)
parent
- the parentcitem
- the citempublic void run()
run
in interface IAction
run
in class Action
public void add(Action action)
action
- the Action to addpublic void add(IContributionItem contributionItem)
contributionItem
- the IContributionItem to addpublic void dispose()
dispose
in interface IMenuCreator
public Menu getMenu(Menu parent)
getMenu
in interface IMenuCreator
public Menu getMenu(Control parent)
getMenu
in interface IMenuCreator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |