Class NewUnoProjectPage

  • All Implemented Interfaces:
    org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage, IFieldChangedListener

    public class NewUnoProjectPage
    extends org.eclipse.ui.dialogs.WizardNewProjectCreationPage
    implements IFieldChangedListener
    Uses the default Project wizard page and add some UNO-IDL special fields: SDK and OOo choices company prefix and Output path.
    • Field Summary

      • Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider

        ERROR, INFORMATION, NONE, WARNING
    • Constructor Summary

      Constructors 
      Constructor Description
      NewUnoProjectPage​(java.lang.String pPageName)
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void createControl​(org.eclipse.swt.widgets.Composite pParent)
      void dispose()
      void fieldChanged​(FieldEvent pEvent)
      Method called when the row has changed.
      UnoFactoryData fillData​(UnoFactoryData pData, boolean pForce)  
      AbstractLanguage getChosenLanguage()  
      java.lang.String getOOoName()  
      java.lang.String getOutputExt()  
      java.lang.String getPrefix()  
      IUnoidlProject getUnoidlProject()  
      • Methods inherited from class org.eclipse.ui.dialogs.WizardNewProjectCreationPage

        createWorkingSetGroup, getLocationPath, getLocationURI, getProjectHandle, getProjectName, getSelectedWorkingSets, setInitialProjectName, setVisible, useDefaults, validatePage
      • Methods inherited from class org.eclipse.jface.wizard.WizardPage

        canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
      • Methods inherited from class org.eclipse.jface.dialogs.DialogPage

        convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage

        getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp
    • Constructor Detail

      • NewUnoProjectPage

        public NewUnoProjectPage​(java.lang.String pPageName)
        Default constructor.
        Parameters:
        pPageName - the name of the wizard page
    • Method Detail

      • dispose

        public void dispose()
        Specified by:
        dispose in interface org.eclipse.jface.dialogs.IDialogPage
        Overrides:
        dispose in class org.eclipse.jface.dialogs.DialogPage
      • getPrefix

        public java.lang.String getPrefix()
        Returns:
        company prefix entered
      • getOutputExt

        public java.lang.String getOutputExt()
        Returns:
        output extension entered
      • getChosenLanguage

        public AbstractLanguage getChosenLanguage()
        Returns:
        the chosen implementation language.
      • getOOoName

        public java.lang.String getOOoName()
        Returns:
        the selected OOo name
      • createControl

        public void createControl​(org.eclipse.swt.widgets.Composite pParent)
        Specified by:
        createControl in interface org.eclipse.jface.dialogs.IDialogPage
        Overrides:
        createControl in class org.eclipse.ui.dialogs.WizardNewProjectCreationPage
      • fillData

        public UnoFactoryData fillData​(UnoFactoryData pData,
                                       boolean pForce)
        Parameters:
        pData - the data to fill.
        pForce - forces the project creation. Otherwise, the project handle won't be set
        Returns:
        the given data with the completed properties, null if the provided data is null
      • getUnoidlProject

        public IUnoidlProject getUnoidlProject()
        Returns:
        the reference to the unoidl project