public class GovernanceSourceWizard extends org.eclipse.jface.wizard.Wizard implements GovernanceSourceInstanceContext
IWizard
to add and manage Governance
instances.Constructor and Description |
---|
GovernanceSourceWizard(org.eclipse.core.resources.IProject project)
Initiate to create a new
GovernanceInstance . |
GovernanceSourceWizard(org.eclipse.core.resources.IProject project,
GovernanceInstance governanceInstance)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 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
.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.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)
GovernanceSourceInstanceContext
setTitle
in interface GovernanceSourceInstanceContext
title
- Title.public void setErrorMessage(String message)
GovernanceSourceInstanceContext
setErrorMessage
in interface GovernanceSourceInstanceContext
message
- Error message or null
to indicate no error.public void setGovernanceTypeLoaded(boolean isGovernanceTypeLoaded)
GovernanceSourceInstanceContext
GovernanceType
is loaded.setGovernanceTypeLoaded
in interface GovernanceSourceInstanceContext
isGovernanceTypeLoaded
- true
GovernanceType
loaded.Copyright © 2005–2016. All rights reserved.