|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openoffice.ide.eclipse.core.wizards.utils.WizardPageSet
org.openoffice.ide.eclipse.core.wizards.ServiceWizardSet
public class ServiceWizardSet
This wizard page set manages a service page and an interface page.
Field Summary | |
---|---|
static java.lang.String |
INTERFACE_PAGE_ID
|
protected IUnoidlProject |
mProject
An instance of the project in which the wizard set is run. |
static java.lang.String |
SERVICE_PAGE_ID
|
Fields inherited from class org.openoffice.ide.eclipse.core.wizards.utils.WizardPageSet |
---|
mChangingPages, mPageListener, mWizard |
Constructor Summary | |
---|---|
ServiceWizardSet(org.eclipse.jface.wizard.IWizard pWizard)
Constructor. |
Method Summary | |
---|---|
void |
dataChanged(UnoFactoryData pDelta)
Change the service and/or interface page from a data delta. |
void |
doFinish(org.eclipse.core.runtime.IProgressMonitor pMonitor,
org.eclipse.ui.IWorkbenchPage pActivePage)
Performs the actions to run at the end of the wizard for the wizard set. |
void |
initialize(UnoFactoryData pData)
Initializes the service and interface pages at their creation. |
Methods inherited from class org.openoffice.ide.eclipse.core.wizards.utils.WizardPageSet |
---|
addPage, getNextPage, getPage, getPages, getPreviousPage, setHidden |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SERVICE_PAGE_ID
public static final java.lang.String INTERFACE_PAGE_ID
protected IUnoidlProject mProject
This member should be used only to replace the pages project reference is needed. This is mostly used when the project isn't created when the wizard set is opened, i.e.: at project creation.
Constructor Detail |
---|
public ServiceWizardSet(org.eclipse.jface.wizard.IWizard pWizard)
pWizard
- the wizard in which the wizard set will be includedMethod Detail |
---|
public void initialize(UnoFactoryData pData)
The factory data needed for the pages initialization should contain some fields about the project and two or less children (one for a service and/or one for an interface). The data structure should contain the following fields:
Project fields
Service fields (opt.)
Interface fields (opt.)
initialize
in class WizardPageSet
pData
- the service initialization data as described above.public void dataChanged(UnoFactoryData pDelta)
The delta is a UnoFactoryData
structured in the same way than
the data used in initialize(UnoFactoryData)
. The main difference
is that only the changed data should be set. The according fields will be
modified in the pages.
The service inheritance and interface name and package are changed if the service module or name has changed. This doesn't apply if the service inheritance has been manually changed by the user.
dataChanged
in class WizardPageSet
pDelta
- the data delta to update the pages withfor details on how the delta should be
structured
public void doFinish(org.eclipse.core.runtime.IProgressMonitor pMonitor, org.eclipse.ui.IWorkbenchPage pActivePage)
Performs the changes needed by the wizard set. This method has to be
called in the IWizard.performFinish()
method. For cleaner actions
the actions performed by the wizard set finish should concern only the
data defined by the wizard set pages.
The active page is often needed by the UnoFactory
to open a
newly created file in the workbench.
This method should be overridden by the subclasses. The default method doesn't perform any action.
doFinish
in class WizardPageSet
pMonitor
- the monitor used to follow the finish process.pActivePage
- the page that was active before opening the wizard.for more informations on actions performed
when finishing a wizard.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |