public class OfficeSourceWizard extends org.eclipse.jface.wizard.Wizard implements OfficeSourceInstanceContext
IWizard
to add and manage Office
instances.Constructor and Description |
---|
OfficeSourceWizard(org.eclipse.core.resources.IProject project)
Initiate to create a new
OfficeInstance . |
OfficeSourceWizard(org.eclipse.core.resources.IProject project,
OfficeInstance officeInstance)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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
.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.IWizard
addPages
in class org.eclipse.jface.wizard.Wizard
public org.eclipse.jface.wizard.IWizardPage getNextPage(org.eclipse.jface.wizard.IWizardPage page)
getNextPage
in interface org.eclipse.jface.wizard.IWizard
getNextPage
in class org.eclipse.jface.wizard.Wizard
public boolean canFinish()
canFinish
in interface org.eclipse.jface.wizard.IWizard
canFinish
in class org.eclipse.jface.wizard.Wizard
public boolean performFinish()
performFinish
in interface org.eclipse.jface.wizard.IWizard
performFinish
in class org.eclipse.jface.wizard.Wizard
public void setTitle(String title)
OfficeSourceInstanceContext
setTitle
in interface OfficeSourceInstanceContext
title
- Title.public void setErrorMessage(String message)
OfficeSourceInstanceContext
setErrorMessage
in interface OfficeSourceInstanceContext
message
- Error message or null
to indicate no error.public void setOfficeLoaded(boolean isOfficeTypeLoaded)
OfficeSourceInstanceContext
OfficeType
is loaded.setOfficeLoaded
in interface OfficeSourceInstanceContext
isOfficeTypeLoaded
- true
OfficeType
loaded.Copyright © 2005–2016. All rights reserved.