public abstract class AbstractPulldownAction
extends java.lang.Object
implements org.eclipse.ui.IWorkbenchWindowPulldownDelegate
| Constructor and Description |
|---|
AbstractPulldownAction(java.lang.String pParameterName)
Pulldown action.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
org.eclipse.swt.widgets.Menu |
getMenu(org.eclipse.swt.widgets.Control pParent) |
void |
init(org.eclipse.ui.IWorkbenchWindow pWindow) |
abstract boolean |
isValidSelection(org.eclipse.jface.viewers.IStructuredSelection pSelection)
Check if the selection is valid, and if the pulldown action can be enabled.
|
protected void |
openWizard(org.eclipse.ui.INewWizard pWizard)
Open the new wizard dialog.
|
void |
selectionChanged(org.eclipse.jface.action.IAction pAction,
org.eclipse.jface.viewers.ISelection pSelection) |
public AbstractPulldownAction(java.lang.String pParameterName)
pParameterName - the action parameterpublic abstract boolean isValidSelection(org.eclipse.jface.viewers.IStructuredSelection pSelection)
pSelection - the current selectiontrue if the wizards can be launched.protected void openWizard(org.eclipse.ui.INewWizard pWizard)
pWizard - the wizard to openpublic org.eclipse.swt.widgets.Menu getMenu(org.eclipse.swt.widgets.Control pParent)
getMenu in interface org.eclipse.ui.IWorkbenchWindowPulldownDelegatepublic void dispose()
dispose in interface org.eclipse.ui.IWorkbenchWindowActionDelegatepublic void init(org.eclipse.ui.IWorkbenchWindow pWindow)
init in interface org.eclipse.ui.IWorkbenchWindowActionDelegatepublic void selectionChanged(org.eclipse.jface.action.IAction pAction,
org.eclipse.jface.viewers.ISelection pSelection)
selectionChanged in interface org.eclipse.ui.IActionDelegate