|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openoffice.ide.eclipse.core.actions.AbstractPulldownAction
public abstract class AbstractPulldownAction
Abstract class to create a pulldown menu action.
Constructor Summary | |
---|---|
AbstractPulldownAction(java.lang.String pParameterName)
Pulldown action. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.ui.IActionDelegate |
---|
run |
Constructor Detail |
---|
public AbstractPulldownAction(java.lang.String pParameterName)
pParameterName
- the action parameterMethod Detail |
---|
public abstract boolean isValidSelection(org.eclipse.jface.viewers.IStructuredSelection pSelection)
pSelection
- the current selection
true
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.IWorkbenchWindowPulldownDelegate
public void dispose()
dispose
in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
public void init(org.eclipse.ui.IWorkbenchWindow pWindow)
init
in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
public void selectionChanged(org.eclipse.jface.action.IAction pAction, org.eclipse.jface.viewers.ISelection pSelection)
selectionChanged
in interface org.eclipse.ui.IActionDelegate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |