Class UnoTypePulldownAction
java.lang.Object
org.libreoffice.ide.eclipse.core.actions.AbstractPulldownAction
org.libreoffice.ide.eclipse.core.actions.UnoTypePulldownAction
- All Implemented Interfaces:
org.eclipse.ui.IActionDelegate,org.eclipse.ui.IWorkbenchWindowActionDelegate,org.eclipse.ui.IWorkbenchWindowPulldownDelegate
Pulldown action for the uno types. The wizard has to be defined as follows:
<wizard
canFinishEarly="false"
category="org.libreoffice.ide.eclipse.core"
hasPages="true"
icon="icons/newservice.gif"
id="org.libreoffice.ide.eclipse.core.newservice"
name="%wizards.service"
project="false">
<class class="org.libreoffice.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>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisValidSelection(org.eclipse.jface.viewers.IStructuredSelection pSelection) Check if the selection is valid, and if the pulldown action can be enabled.voidrun(org.eclipse.jface.action.IAction action) Methods inherited from class org.libreoffice.ide.eclipse.core.actions.AbstractPulldownAction
dispose, getMenu, init, openWizard, selectionChanged
-
Constructor Details
-
UnoTypePulldownAction
public UnoTypePulldownAction()UNO type wizard pulldown action.
-
-
Method Details
-
run
public void run(org.eclipse.jface.action.IAction action) -
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:
isValidSelectionin classAbstractPulldownAction- Parameters:
pSelection- the current selection- Returns:
trueif the wizards can be launched.
-