|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.wizard.Wizard
net.officefloor.eclipse.wizard.officesource.OfficeSourceWizard
public class OfficeSourceWizard
IWizard to add and manage Office instances.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.jface.wizard.Wizard |
|---|
DEFAULT_IMAGE |
| Constructor Summary | |
|---|---|
OfficeSourceWizard(org.eclipse.core.resources.IProject project)
Initiate to create a new OfficeInstance. |
|
OfficeSourceWizard(org.eclipse.core.resources.IProject project,
OfficeInstance officeInstance)
Initiate. |
|
| Method Summary | |
|---|---|
void |
addPages()
|
boolean |
canFinish()
|
static Map<String,OfficeSourceInstance> |
createOfficeSourceInstanceMap(ClassLoader classLoader,
org.eclipse.core.resources.IProject project,
OfficeSourceInstanceContext context)
Creates the mapping of OfficeSource class name to its
OfficeSourceInstance. |
org.eclipse.jface.wizard.IWizardPage |
getNextPage(org.eclipse.jface.wizard.IWizardPage page)
|
OfficeInstance |
getOfficeInstance()
Obtains the OfficeInstance. |
static OfficeInstance |
getOfficeInstance(AbstractOfficeFloorEditPart<?,?,?> editPart,
OfficeInstance officeInstance)
Facade method to obtain the OfficeInstance. |
boolean |
performFinish()
|
void |
setErrorMessage(String message)
Specifies an error message. |
void |
setOfficeLoaded(boolean isOfficeTypeLoaded)
Flags if OfficeType is loaded. |
void |
setTitle(String title)
Specifies the title. |
| Methods inherited from class org.eclipse.jface.wizard.Wizard |
|---|
addPage, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getPage, getPageCount, getPages, getPreviousPage, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OfficeSourceWizard(org.eclipse.core.resources.IProject project)
OfficeInstance.
project - IProject.
public OfficeSourceWizard(org.eclipse.core.resources.IProject project,
OfficeInstance officeInstance)
project - IProject.officeInstance - OfficeInstance to be edited, or null to
create a new OfficeInstance.| Method Detail |
|---|
public static OfficeInstance getOfficeInstance(AbstractOfficeFloorEditPart<?,?,?> editPart,
OfficeInstance officeInstance)
OfficeInstance.
editPart - AbstractOfficeFloorEditPart to obtain necessary
objects to run the OfficeSourceWizard.officeInstance - OfficeInstance to based decisions. null
if creating new OfficeInstance.
OfficeInstance or null if canceled.
public static Map<String,OfficeSourceInstance> createOfficeSourceInstanceMap(ClassLoader classLoader,
org.eclipse.core.resources.IProject project,
OfficeSourceInstanceContext context)
OfficeSource class name to its
OfficeSourceInstance.
classLoader - ClassLoader.project - IProject.context - OfficeSourceInstanceContext.
OfficeSource class name to its
OfficeSourceInstance.public OfficeInstance getOfficeInstance()
OfficeInstance.
OfficeInstance.public void addPages()
addPages in interface org.eclipse.jface.wizard.IWizardaddPages in class org.eclipse.jface.wizard.Wizardpublic org.eclipse.jface.wizard.IWizardPage getNextPage(org.eclipse.jface.wizard.IWizardPage page)
getNextPage in interface org.eclipse.jface.wizard.IWizardgetNextPage in class org.eclipse.jface.wizard.Wizardpublic boolean canFinish()
canFinish in interface org.eclipse.jface.wizard.IWizardcanFinish in class org.eclipse.jface.wizard.Wizardpublic boolean performFinish()
performFinish in interface org.eclipse.jface.wizard.IWizardperformFinish in class org.eclipse.jface.wizard.Wizardpublic void setTitle(String title)
OfficeSourceInstanceContext
setTitle in interface OfficeSourceInstanceContexttitle - Title.public void setErrorMessage(String message)
OfficeSourceInstanceContext
setErrorMessage in interface OfficeSourceInstanceContextmessage - Error message or null to indicate no error.public void setOfficeLoaded(boolean isOfficeTypeLoaded)
OfficeSourceInstanceContextOfficeType is loaded.
setOfficeLoaded in interface OfficeSourceInstanceContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||