|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.core.commands.common.EventManager org.eclipse.jface.action.AbstractAction org.eclipse.jface.action.Action org.eclipse.xpand.ui.refactoring.actions.QuickMenuAction
public abstract class QuickMenuAction
A quick menu actions provides support to assign short cuts to sub menus.
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 | |
---|---|
QuickMenuAction(java.lang.String commandId)
Creates a new quick menu action with the given command id. |
Method Summary | |
---|---|
java.lang.String |
addShortcut(java.lang.String menuText)
Adds the shortcut to the given menu text and returns it. |
protected org.eclipse.swt.graphics.Point |
computeMenuLocation(org.eclipse.swt.custom.StyledText text)
Hook to compute the menu location if the focus widget is a styled text widget. |
protected org.eclipse.swt.graphics.Point |
computeMenuLocation(org.eclipse.swt.widgets.Table table)
Hook to compute the menu location if the focus widget is a table widget. |
protected org.eclipse.swt.graphics.Point |
computeMenuLocation(org.eclipse.swt.widgets.Tree tree)
Hook to compute the menu location if the focus widget is a tree widget. |
protected abstract void |
fillMenu(org.eclipse.jface.action.IMenuManager menu)
Hook to fill a menu manager with the items of the sub menu. |
void |
run()
|
Methods inherited from class org.eclipse.jface.action.Action |
---|
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText |
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 QuickMenuAction(java.lang.String commandId)
commandId
- the command id of the short cut used to open the sub menuMethod Detail |
---|
public void run()
run
in interface org.eclipse.jface.action.IAction
run
in class org.eclipse.jface.action.Action
protected abstract void fillMenu(org.eclipse.jface.action.IMenuManager menu)
menu
- the sub menu to fillpublic java.lang.String addShortcut(java.lang.String menuText)
menuText
- the menu text
protected org.eclipse.swt.graphics.Point computeMenuLocation(org.eclipse.swt.custom.StyledText text)
text
- the styled text widget that has the focus
null
if now position inside the widget can be
computedprotected org.eclipse.swt.graphics.Point computeMenuLocation(org.eclipse.swt.widgets.Tree tree)
tree
- the tree widget that has the focus
null
if now position inside the widget can be
computedprotected org.eclipse.swt.graphics.Point computeMenuLocation(org.eclipse.swt.widgets.Table table)
table
- the table widget that has the focus
null
if now position inside the widget can be
computed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |