public class WorkSourceWizard extends org.eclipse.jface.wizard.Wizard implements WorkSourceInstanceContext
IWizard
to add and manage Work
instances.Constructor and Description |
---|
WorkSourceWizard(AbstractOfficeFloorEditPart<?,?,?> editPart)
Initiate to create a new
WorkInstance . |
WorkSourceWizard(AbstractOfficeFloorEditPart<?,?,?> editPart,
WorkInstance workInstance)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
void |
addPages() |
boolean |
canFinish() |
static Map<String,WorkSourceInstance> |
createWorkSourceInstanceMap(ClassLoader classLoader,
org.eclipse.core.resources.IProject project,
WorkSourceInstanceContext context)
Creates the mapping of
WorkSource class name to its
WorkSourceInstance . |
org.eclipse.jface.wizard.IWizardPage |
getNextPage(org.eclipse.jface.wizard.IWizardPage page) |
WorkInstance |
getWorkInstance()
Obtains the
WorkInstance . |
static WorkInstance |
getWorkInstance(AbstractOfficeFloorEditPart<?,?,?> editPart,
WorkInstance workInstance)
Facade method to obtain the
WorkInstance . |
boolean |
performFinish() |
void |
setErrorMessage(String message)
Specifies an error message.
|
void |
setTitle(String title)
Specifies the title.
|
void |
setWorkTypeLoaded(boolean isWorkTypeLoaded)
Flags if
WorkType is loaded. |
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 WorkSourceWizard(AbstractOfficeFloorEditPart<?,?,?> editPart)
WorkInstance
.editPart
- AbstractOfficeFloorEditPart
.public WorkSourceWizard(AbstractOfficeFloorEditPart<?,?,?> editPart, WorkInstance workInstance)
editPart
- AbstractOfficeFloorEditPart
.workInstance
- WorkInstance
to be edited, or null
to
create a new WorkInstance
.public static WorkInstance getWorkInstance(AbstractOfficeFloorEditPart<?,?,?> editPart, WorkInstance workInstance)
WorkInstance
.editPart
- AbstractOfficeFloorEditPart
to obtain necessary
objects to run the WorkSourceWizard
.workInstance
- WorkInstance
to based decisions. null
if
creating new WorkInstance
.WorkInstance
or null
if cancelled.public static Map<String,WorkSourceInstance> createWorkSourceInstanceMap(ClassLoader classLoader, org.eclipse.core.resources.IProject project, WorkSourceInstanceContext context)
WorkSource
class name to its
WorkSourceInstance
.classLoader
- ClassLoader
.project
- IProject
.context
- WorkSourceInstanceContext
.WorkSource
class name to its
WorkSourceInstance
.public WorkInstance getWorkInstance()
WorkInstance
.WorkInstance
.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)
WorkSourceInstanceContext
setTitle
in interface WorkSourceInstanceContext
title
- Title.public void setErrorMessage(String message)
WorkSourceInstanceContext
setErrorMessage
in interface WorkSourceInstanceContext
message
- Error message or null
to indicate no error.public void setWorkTypeLoaded(boolean isWorkTypeLoaded)
WorkSourceInstanceContext
WorkType
is loaded.setWorkTypeLoaded
in interface WorkSourceInstanceContext
isWorkTypeLoaded
- true
WorkType
loaded.Copyright © 2005–2016. All rights reserved.