org.openoffice.ide.eclipse.core.actions
Class UnoTypePulldownAction
java.lang.Object
org.openoffice.ide.eclipse.core.actions.AbstractPulldownAction
org.openoffice.ide.eclipse.core.actions.UnoTypePulldownAction
- All Implemented Interfaces:
- org.eclipse.ui.IActionDelegate, org.eclipse.ui.IWorkbenchWindowActionDelegate, org.eclipse.ui.IWorkbenchWindowPulldownDelegate
public class UnoTypePulldownAction
- extends AbstractPulldownAction
Pulldown action for the uno types. The wizard has to be defined as follows:
<wizard
canFinishEarly="false"
category="org.openoffice.ide.eclipse.core"
hasPages="true"
icon="icons/newservice.gif"
id="org.openoffice.ide.eclipse.core.newservice"
name="%wizards.service"
project="false">
<class class="org.openoffice.ide.eclipse.core.wizards.NewServiceWizard">
<parameter name="unotype" value="true"/>
</class>
<description>
Creates a new 'new-styled' UNO service. A service will export one interface and define some constructors.
</description>
</wizard>
- Author:
- cedricbosdo
Method Summary |
boolean |
isValidSelection(org.eclipse.jface.viewers.IStructuredSelection pSelection)
Check if the selection is valid, and if the pulldown action can be enabled. |
void |
run(org.eclipse.jface.action.IAction pAction)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnoTypePulldownAction
public UnoTypePulldownAction()
- UNO type wizard pulldown action.
run
public void run(org.eclipse.jface.action.IAction pAction)
-
isValidSelection
public boolean isValidSelection(org.eclipse.jface.viewers.IStructuredSelection pSelection)
- Check if the selection is valid, and if the pulldown action can be enabled.
- Specified by:
isValidSelection
in class AbstractPulldownAction
- Parameters:
pSelection
- the current selection
- Returns:
true
if the wizards can be launched.