Package com._1c.g5.v8.dt.md.ui.wizards
Class TemplateWizard
- java.lang.Object
-
- org.eclipse.jface.wizard.Wizard
-
- com._1c.g5.v8.dt.md.ui.wizards.base.DtNewWizard<M>
-
- com._1c.g5.v8.dt.md.ui.wizards.base.aef.DtAefNewWizard<M>
-
- com._1c.g5.v8.dt.md.ui.wizards.base.aef.DtAefMdNewWizard<BasicTemplate>
-
- com._1c.g5.v8.dt.md.ui.wizards.TemplateWizard
-
- All Implemented Interfaces:
IDtNewWizard<BasicTemplate>
,org.eclipse.core.runtime.IExecutableExtension
,org.eclipse.jface.window.IShellProvider
,org.eclipse.jface.wizard.IWizard
,org.eclipse.ui.INewWizard
,org.eclipse.ui.IWorkbenchWizard
public class TemplateWizard extends DtAefMdNewWizard<BasicTemplate>
The class provides New Template wizard dialog.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TemplateWizard.TemplateWizardContext
Extended context information for template wizard.
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.md.ui.wizards.base.aef.DtAefMdNewWizard
mdObjectAvailability
-
Fields inherited from class com._1c.g5.v8.dt.md.ui.wizards.base.DtNewWizard
configurationProvider, derivedDataManagerProvider, modelManager, resourceLookup, runtimeVersionSupport, selectionService, topObjectFqnGenerator, v8projectManager, wizardExtensionsRegistry
-
-
Constructor Summary
Constructors Constructor Description TemplateWizard()
Instantiates a new template wizard.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MdModelNewWizardPageComponent<? extends IMdObjectModel>
createMdMainPage()
protected void
disposeMdObjectModel()
Disposes the model if it is not null.protected IMdObjectModel
getMdObjectModel()
ReturnsIMdObjectModel
.protected String
getNamePrefix()
Returns the name prefix for the editingMdObject
.void
integrateModel(org.eclipse.core.runtime.IProgressMonitor monitor)
Integrates the created model in the enclosing model.void
setReportMainDataCompositionSchema(boolean dcs)
Setstrue
if it is report DCS wizard.protected void
setupMdMainPageViewModel(NewWizardPageViewModel viewModel)
Setups theNewWizardPageViewModel
for main page.-
Methods inherited from class com._1c.g5.v8.dt.md.ui.wizards.base.aef.DtAefMdNewWizard
createMdObjectModel, dispose, disposeMainPageComponent, doAddPages, getMainPageComponent, getModelForPageComponent, getProjectNamePrefix
-
Methods inherited from class com._1c.g5.v8.dt.md.ui.wizards.base.aef.DtAefNewWizard
addPage, getEngine, onParentChanged
-
Methods inherited from class com._1c.g5.v8.dt.md.ui.wizards.base.DtNewWizard
addExtensionPages, addPages, canFinish, createModel, createPageControls, detectModelClass, detectParent, getContext, getPreviousPage, getSelection, init, performFinish, postProcessBmIntegration, preProcessBmIntegration, setContainer, setInitializationData, setModelClassDetectionStrategy, setOpenEditorAfterCreation, setParentDetectionStrategy, setSelectAfterCreation, setShowParentSelectionPage
-
Methods inherited from class org.eclipse.jface.wizard.Wizard
addPage, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitle
-
-
-
-
Method Detail
-
integrateModel
public void integrateModel(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
Description copied from class:DtNewWizard
Integrates the created model in the enclosing model. Called at wizard finish.- Specified by:
integrateModel
in interfaceIDtNewWizard<BasicTemplate>
- Overrides:
integrateModel
in classDtNewWizard<BasicTemplate>
- Parameters:
monitor
- the progress monitor to report progress to ornull
if progress report is not needed- Throws:
org.eclipse.core.runtime.CoreException
- if model integrations fails with some reason
-
setReportMainDataCompositionSchema
public void setReportMainDataCompositionSchema(boolean dcs)
Setstrue
if it is report DCS wizard.- Parameters:
dcs
-true
if it is report DCS wizard.
-
createMdMainPage
protected MdModelNewWizardPageComponent<? extends IMdObjectModel> createMdMainPage()
Description copied from class:DtAefMdNewWizard
- Overrides:
createMdMainPage
in classDtAefMdNewWizard<BasicTemplate>
- Returns:
- a newly created page component.
-
disposeMdObjectModel
protected void disposeMdObjectModel()
Description copied from class:DtAefMdNewWizard
Disposes the model if it is not null.- Overrides:
disposeMdObjectModel
in classDtAefMdNewWizard<BasicTemplate>
-
getMdObjectModel
protected IMdObjectModel getMdObjectModel()
Description copied from class:DtAefMdNewWizard
ReturnsIMdObjectModel
.- Overrides:
getMdObjectModel
in classDtAefMdNewWizard<BasicTemplate>
- Returns:
- the
IMdObjectModel
-
getNamePrefix
protected String getNamePrefix()
Description copied from class:DtAefMdNewWizard
Returns the name prefix for the editingMdObject
.
For example, forCatalog
object it would be "Catalog" string. Its value is used for unique name generation. So, if the name prefix is specified that is mentioned above, then unique names would be generated as "Catalog1", "Catalog2" etc.- Specified by:
getNamePrefix
in classDtAefMdNewWizard<BasicTemplate>
- Returns:
- the name prefix.
-
setupMdMainPageViewModel
protected void setupMdMainPageViewModel(NewWizardPageViewModel viewModel)
Description copied from class:DtAefMdNewWizard
Setups theNewWizardPageViewModel
for main page.
Actually it is needed to set title and description features.- Specified by:
setupMdMainPageViewModel
in classDtAefMdNewWizard<BasicTemplate>
- Parameters:
viewModel
- the view model.
-
-