Class UnoProjectPulldownAction
java.lang.Object
org.libreoffice.ide.eclipse.core.actions.AbstractPulldownAction
org.libreoffice.ide.eclipse.core.actions.UnoProjectPulldownAction
- All Implemented Interfaces:
org.eclipse.ui.IActionDelegate,org.eclipse.ui.IWorkbenchWindowActionDelegate,org.eclipse.ui.IWorkbenchWindowPulldownDelegate
Pulldown action for the uno projects. The wizard has to be defined as follows:
<wizard
canFinishEarly="false"
category="org.libreoffice.ide.eclipse.core"
hasPages="true"
icon="icons/newunoproject.gif"
id="org.libreoffice.ide.eclipse.core.newunoproject"
name="%wizards.unoidlproject"
project="true">
<class class="org.libreoffice.ide.eclipse.core.wizards.NewUnoProjectWizard">
<parameter name="unoproject" value="true"/>
</class>
<description>
Create an empty UNO component with a service and it's implementation.
</description>
</wizard>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisValidSelection(org.eclipse.jface.viewers.IStructuredSelection selection) 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
-
UnoProjectPulldownAction
public UnoProjectPulldownAction()Projects pulldown actions constructor.
-
-
Method Details
-
run
public void run(org.eclipse.jface.action.IAction action) -
isValidSelection
public boolean isValidSelection(org.eclipse.jface.viewers.IStructuredSelection selection) Check if the selection is valid, and if the pulldown action can be enabled.- Specified by:
isValidSelectionin classAbstractPulldownAction- Parameters:
selection- the current selection- Returns:
trueif the wizards can be launched.
-