Class UnoProjectPulldownAction

  • All Implemented Interfaces:
    org.eclipse.ui.IActionDelegate, org.eclipse.ui.IWorkbenchWindowActionDelegate, org.eclipse.ui.IWorkbenchWindowPulldownDelegate

    public class UnoProjectPulldownAction
    extends AbstractPulldownAction
    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 
      Constructor Description
      UnoProjectPulldownAction()
      Projects pulldown actions constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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
    • Constructor Detail

      • UnoProjectPulldownAction

        public UnoProjectPulldownAction()
        Projects pulldown actions constructor.
    • Method Detail

      • 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.