|
||||||||||
| 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.worksource.WorkSourceWizard
public class WorkSourceWizard
IWizard to add and manage Work instances.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.jface.wizard.Wizard |
|---|
DEFAULT_IMAGE |
| Constructor Summary | |
|---|---|
WorkSourceWizard(AbstractOfficeFloorEditPart<?,?,?> editPart)
Initiate to create a new WorkInstance. |
|
WorkSourceWizard(AbstractOfficeFloorEditPart<?,?,?> editPart,
WorkInstance workInstance)
Initiate. |
|
| Method Summary | |
|---|---|
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. |
| 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 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.| Method Detail |
|---|
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.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)
WorkSourceInstanceContext
setTitle in interface WorkSourceInstanceContexttitle - Title.public void setErrorMessage(String message)
WorkSourceInstanceContext
setErrorMessage in interface WorkSourceInstanceContextmessage - Error message or null to indicate no error.public void setWorkTypeLoaded(boolean isWorkTypeLoaded)
WorkSourceInstanceContextWorkType is loaded.
setWorkTypeLoaded in interface WorkSourceInstanceContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||