Package org.eclipse.mat.ui.util
Class EasyToolBarDropDown
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.jface.action.AbstractAction
org.eclipse.jface.action.Action
org.eclipse.mat.ui.util.EasyToolBarDropDown
- All Implemented Interfaces:
IAction
,IMenuCreator
- Direct Known Subclasses:
QueryDropDownMenuAction
,RunReportsDropDownAction
Using this class one can create a tool bar button that drops down its menu
also when the button itself was clicked (user don't have to aim at the small
arrow next to it).
-
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
ConstructorDescriptionEasyToolBarDropDown
(String text, ImageDescriptor image, AbstractEditorPane pane) EasyToolBarDropDown
(String text, ImageDescriptor image, MultiPaneEditor editor) -
Method Summary
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, removePropertyChangeListener
-
Constructor Details
-
EasyToolBarDropDown
-
EasyToolBarDropDown
-
-
Method Details
-
run
public final void run() -
contribute
-
dispose
public final void dispose()- Specified by:
dispose
in interfaceIMenuCreator
-
getMenu
- Specified by:
getMenu
in interfaceIMenuCreator
-
getMenu
- Specified by:
getMenu
in interfaceIMenuCreator
-