|
||||||||||
| 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.governancesource.GovernanceSourceWizard
public class GovernanceSourceWizard
IWizard to add and manage Governance instances.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.jface.wizard.Wizard |
|---|
DEFAULT_IMAGE |
| Constructor Summary | |
|---|---|
GovernanceSourceWizard(org.eclipse.core.resources.IProject project)
Initiate to create a new GovernanceInstance. |
|
GovernanceSourceWizard(org.eclipse.core.resources.IProject project,
GovernanceInstance governanceInstance)
Initiate. |
|
| Method Summary | |
|---|---|
void |
addPages()
|
boolean |
canFinish()
|
static Map<String,GovernanceSourceInstance> |
createGovernanceSourceInstanceMap(ClassLoader classLoader,
org.eclipse.core.resources.IProject project,
GovernanceSourceInstanceContext context)
Creates the mapping of GovernanceSource class name to its
GovernanceSourceInstance. |
GovernanceInstance |
getGovernanceInstance()
Obtains the GovernanceInstance. |
static GovernanceInstance |
getGovernanceInstance(AbstractOfficeFloorEditPart<?,?,?> editPart,
GovernanceInstance governanceInstance)
Facade method to obtain the GovernanceInstance. |
org.eclipse.jface.wizard.IWizardPage |
getNextPage(org.eclipse.jface.wizard.IWizardPage page)
|
boolean |
performFinish()
|
void |
setErrorMessage(String message)
Specifies an error message. |
void |
setGovernanceTypeLoaded(boolean isGovernanceTypeLoaded)
Flags if GovernanceType 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 GovernanceSourceWizard(org.eclipse.core.resources.IProject project)
GovernanceInstance.
project - IProject.
public GovernanceSourceWizard(org.eclipse.core.resources.IProject project,
GovernanceInstance governanceInstance)
project - IProject.governanceInstance - GovernanceInstance to be edited, or null
to create a new GovernanceInstance.| Method Detail |
|---|
public static GovernanceInstance getGovernanceInstance(AbstractOfficeFloorEditPart<?,?,?> editPart,
GovernanceInstance governanceInstance)
GovernanceInstance.
editPart - AbstractOfficeFloorEditPart to obtain necessary
objects to run the GovernanceSourceWizard.governanceInstance - GovernanceInstance to base decisions.
null if creating new GovernanceInstance.
GovernanceInstance or null if cancelled.
public static Map<String,GovernanceSourceInstance> createGovernanceSourceInstanceMap(ClassLoader classLoader,
org.eclipse.core.resources.IProject project,
GovernanceSourceInstanceContext context)
GovernanceSource class name to its
GovernanceSourceInstance.
classLoader - ClassLoader.project - IProject.context - GovernanceSourceInstanceContext.
GovernanceSource class name to its
GovernanceSourceInstance.public GovernanceInstance getGovernanceInstance()
GovernanceInstance.
GovernanceInstance.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)
GovernanceSourceInstanceContext
setTitle in interface GovernanceSourceInstanceContexttitle - Title.public void setErrorMessage(String message)
GovernanceSourceInstanceContext
setErrorMessage in interface GovernanceSourceInstanceContextmessage - Error message or null to indicate no error.public void setGovernanceTypeLoaded(boolean isGovernanceTypeLoaded)
GovernanceSourceInstanceContextGovernanceType is loaded.
setGovernanceTypeLoaded in interface GovernanceSourceInstanceContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||