Class NewUnoProjectPage

java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
org.eclipse.ui.dialogs.WizardNewProjectCreationPage
org.libreoffice.ide.eclipse.core.wizards.pages.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
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    createControl(org.eclipse.swt.widgets.Composite pParent)
    void
    void
    Method called when the row has changed.
    fillData(UnoFactoryData data, boolean force)
     
     
     
     
     
     

    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

    Methods inherited from interface org.eclipse.jface.wizard.IWizardPage

    getMinimumPageSize
  • Constructor Details

    • NewUnoProjectPage

      public NewUnoProjectPage(String pPageName)
      Default constructor.
      Parameters:
      pPageName - the name of the wizard page
  • Method Details

    • 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 String getPrefix()
      Returns:
      company prefix entered
    • getOutputExt

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

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

      public 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
    • fieldChanged

      public void fieldChanged(FieldEvent event)
      Method called when the row has changed.
      Specified by:
      fieldChanged in interface IFieldChangedListener
      Parameters:
      event - the field event thrown
    • fillData

      public UnoFactoryData fillData(UnoFactoryData data, boolean force)
      Parameters:
      data - the data to fill.
      force - 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