org.openoffice.ide.eclipse.core.wizards.pages
Class NewUnoProjectPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by org.eclipse.ui.dialogs.WizardNewProjectCreationPage
              extended by org.openoffice.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, IConfigListener

public class NewUnoProjectPage
extends org.eclipse.ui.dialogs.WizardNewProjectCreationPage
implements IFieldChangedListener, IConfigListener

Uses the default Project wizard page and add some UNO-IDL special fields: SDK and OOo choices company prefix and Output path.

Author:
cedricbosdo

Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
NewUnoProjectPage(java.lang.String pPageName)
          Default constructor.
 
Method Summary
 void ConfigAdded(java.lang.Object pElement)
          Method fired when a config element has been added to the container.
 void ConfigRemoved(java.lang.Object pElement)
          Method fired when a config element has been removed from the container.
 void ConfigUpdated(java.lang.Object pElement)
          Method fired when a config element has been updated in the container.
 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)
           
 ILanguage getChosenLanguage()
           
 java.lang.String getOOoName()
           
 java.lang.String getOutputExt()
           
 java.lang.String getPrefix()
           
 java.lang.String getSDKName()
           
 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

getSDKName

public java.lang.String getSDKName()
Returns:
SDK name selected

getOOoName

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

getChosenLanguage

public ILanguage getChosenLanguage()
Returns:
the chosen implementation language.

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 pEvent)
Method called when the row has changed.

Specified by:
fieldChanged in interface IFieldChangedListener
Parameters:
pEvent - the field event thrown

ConfigAdded

public void ConfigAdded(java.lang.Object pElement)
Method fired when a config element has been added to the container.

Specified by:
ConfigAdded in interface IConfigListener
Parameters:
pElement - added sdk or ooo

ConfigRemoved

public void ConfigRemoved(java.lang.Object pElement)
Method fired when a config element has been removed from the container.

Specified by:
ConfigRemoved in interface IConfigListener
Parameters:
pElement - removed sdk or ooo. null if the container has been cleared

ConfigUpdated

public void ConfigUpdated(java.lang.Object pElement)
Method fired when a config element has been updated in the container.

Specified by:
ConfigUpdated in interface IConfigListener
Parameters:
pElement - new value of the sdk or ooo

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