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

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by org.openoffice.ide.eclipse.core.wizards.pages.UnoPackageExportPage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

public class UnoPackageExportPage
extends org.eclipse.jface.wizard.WizardPage

First page of the new UNO extension export wizard.

Author:
Cédric Bosdonnat

Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
UnoPackageExportPage(java.lang.String pPageName, IUnoidlProject pPrj, ManifestExportPage pManifestPage)
          Constructor.
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite pParent)
          
 void forceBuild()
          Force a build of the selected project.
 org.openoffice.plugin.core.model.UnoPackage getPackageModel()
           
 void refreshProject()
          Refresh the selected project.
 void restoreWidgetValues()
          Loads the saved values of the controls states.
 void saveWidgetValues()
          Stores the controls values for the next instance of the page.
 
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, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisible
 
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
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible
 

Constructor Detail

UnoPackageExportPage

public UnoPackageExportPage(java.lang.String pPageName,
                            IUnoidlProject pPrj,
                            ManifestExportPage pManifestPage)
Constructor.

Parameters:
pPageName - the page id
pPrj - the project to export
pManifestPage - the manifest page of the wizard
Method Detail

createControl

public void createControl(org.eclipse.swt.widgets.Composite pParent)


saveWidgetValues

public void saveWidgetValues()
Stores the controls values for the next instance of the page.


restoreWidgetValues

public void restoreWidgetValues()
Loads the saved values of the controls states.


getPackageModel

public org.openoffice.plugin.core.model.UnoPackage getPackageModel()
Returns:
the package model built from the data provided by the user or null if something blocked the process.

refreshProject

public void refreshProject()
Refresh the selected project.


forceBuild

public void forceBuild()
                throws java.lang.Exception
Force a build of the selected project.

Throws:
java.lang.Exception - if the project couldn't be built.