public class SectionSourceWizard extends org.eclipse.jface.wizard.Wizard implements SectionSourceInstanceContext
IWizard
to add and manage OfficeSection
instances.Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 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.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
.isLoadType
- Flag indicating if loading only the type.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.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 boolean isLoadType()
SectionSourceInstanceContext
SectionType
rather than the
OfficeSection
.isLoadType
in interface SectionSourceInstanceContext
true
to load SectionType
, false
to load OfficeSection
.public void setTitle(String title)
SectionSourceInstanceContext
setTitle
in interface SectionSourceInstanceContext
title
- Title.public void setErrorMessage(String message)
SectionSourceInstanceContext
setErrorMessage
in interface SectionSourceInstanceContext
message
- Error message or null
to indicate no error.public void setSectionLoaded(boolean isSectionTypeLoaded)
SectionSourceInstanceContext
SectionType
or OfficeSection
is loaded.setSectionLoaded
in interface SectionSourceInstanceContext
isSectionTypeLoaded
- true
SectionType
or OfficeSection
loaded.Copyright © 2005–2016. All rights reserved.