|
||||||||||
| 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.sectionsource.SectionSourceWizard
public class SectionSourceWizard
IWizard to add and manage OfficeSection instances.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.jface.wizard.Wizard |
|---|
DEFAULT_IMAGE |
| Constructor Summary | |
|---|---|
SectionSourceWizard(boolean isLoadType,
org.eclipse.core.resources.IProject project,
boolean isAutoWire)
Initiate to create a new SectionInstance. |
|
SectionSourceWizard(boolean isLoadType,
org.eclipse.core.resources.IProject project,
SectionInstance sectionInstance,
boolean isAutoWire)
Initiate. |
|
| Method Summary | |
|---|---|
void |
addPages()
|
boolean |
canFinish()
|
static Map<String,SectionSourceInstance> |
createSectionSourceInstanceMap(ClassLoader classLoader,
org.eclipse.core.resources.IProject project,
SectionSourceInstanceContext context)
Creates the mapping of SectionSource class name to its
SectionSourceInstance. |
org.eclipse.jface.wizard.IWizardPage |
getNextPage(org.eclipse.jface.wizard.IWizardPage page)
|
SectionInstance |
getSectionInstance()
Obtains the SectionInstance. |
static SectionInstance |
getSectionInstance(boolean isLoadType,
AbstractOfficeFloorEditPart<?,?,?> editPart,
SectionInstance sectionInstance,
boolean isAutoWire)
Facade method to obtain the SectionInstance. |
boolean |
isLoadType()
Flags to load the SectionType rather than the
OfficeSection. |
static SectionInstance |
loadOfficeSection(AbstractOfficeFloorEditPart<?,?,?> editPart,
SectionInstance sectionInstance,
boolean isAutoWire)
Facade method to obtain the SectionInstance containing the loaded
OfficeSection. |
static SectionInstance |
loadSectionType(AbstractOfficeFloorEditPart<?,?,?> editPart,
SectionInstance sectionInstance,
boolean isAutoWire)
Facade method to obtain the SectionInstance containing the loaded
SectionType. |
boolean |
performFinish()
|
void |
setErrorMessage(String message)
Specifies an error message. |
void |
setSectionLoaded(boolean isSectionTypeLoaded)
Flags if SectionType or OfficeSection 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 SectionSourceWizard(boolean isLoadType,
org.eclipse.core.resources.IProject project,
boolean isAutoWire)
SectionInstance.
isLoadType - Flag indicating to load SectionType rather than
OfficeSection.project - IProject.isAutoWire - Flag indicating if configuring for auto-wire.
public SectionSourceWizard(boolean isLoadType,
org.eclipse.core.resources.IProject project,
SectionInstance sectionInstance,
boolean isAutoWire)
isLoadType - Flag indicating to load SectionType rather than
OfficeSection.project - IProject.sectionInstance - SectionInstance to be edited, or null to
create a new SectionInstance.isAutoWire - Flag indicating if configuring for auto-wire.| Method Detail |
|---|
public static SectionInstance loadSectionType(AbstractOfficeFloorEditPart<?,?,?> editPart,
SectionInstance sectionInstance,
boolean isAutoWire)
SectionInstance containing the loaded
SectionType.
editPart - AbstractOfficeFloorEditPart to obtain necessary
objects to run the SectionSourceWizard.sectionInstance - SectionInstance to based decisions. null
if creating new SectionInstance.isAutoWire - Flag indicating if configuring for auto-wire.
SectionInstance or null if cancelled.
public static SectionInstance loadOfficeSection(AbstractOfficeFloorEditPart<?,?,?> editPart,
SectionInstance sectionInstance,
boolean isAutoWire)
SectionInstance containing the loaded
OfficeSection.
editPart - AbstractOfficeFloorEditPart to obtain necessary
objects to run the SectionSourceWizard.sectionInstance - SectionInstance to based decisions. null
if creating new SectionInstance.isAutoWire - Flag indicating if configuring for auto-wire.
SectionInstance or null if cancelled.
public static SectionInstance getSectionInstance(boolean isLoadType,
AbstractOfficeFloorEditPart<?,?,?> editPart,
SectionInstance sectionInstance,
boolean isAutoWire)
SectionInstance.
editPart - AbstractOfficeFloorEditPart to obtain necessary
objects to run the SectionSourceWizard.sectionInstance - SectionInstance to based decisions. null
if creating new SectionInstance.isAutoWire - Flag indicating if configuring for auto-wire.
SectionInstance or null if cancelled.
public static Map<String,SectionSourceInstance> createSectionSourceInstanceMap(ClassLoader classLoader,
org.eclipse.core.resources.IProject project,
SectionSourceInstanceContext context)
SectionSource class name to its
SectionSourceInstance.
classLoader - ClassLoader.project - IProject.context - SectionSourceInstanceContext.
SectionSource class name to its
SectionSourceInstance.public SectionInstance getSectionInstance()
SectionInstance.
SectionInstance.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 boolean isLoadType()
SectionSourceInstanceContextSectionType rather than the
OfficeSection.
isLoadType in interface SectionSourceInstanceContexttrue to load SectionType, false
to load OfficeSection.public void setTitle(String title)
SectionSourceInstanceContext
setTitle in interface SectionSourceInstanceContexttitle - Title.public void setErrorMessage(String message)
SectionSourceInstanceContext
setErrorMessage in interface SectionSourceInstanceContextmessage - Error message or null to indicate no error.public void setSectionLoaded(boolean isSectionTypeLoaded)
SectionSourceInstanceContextSectionType or OfficeSection is loaded.
setSectionLoaded in interface SectionSourceInstanceContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||