Class DtAefMdNewWizard<M extends MdObject>
- 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<M>
-
- Type Parameters:
M
- the domain model type
- All Implemented Interfaces:
IDtNewWizard<M>
,org.eclipse.core.runtime.IExecutableExtension
,org.eclipse.jface.window.IShellProvider
,org.eclipse.jface.wizard.IWizard
,org.eclipse.ui.INewWizard
,org.eclipse.ui.IWorkbenchWizard
- Direct Known Subclasses:
AbstractCommandWizard
,AccountingRegisterWizard
,AccumulationRegisterWizard
,BotWizard
,BusinessProcessWizard
,CalculationRegisterWizard
,CatalogWizard
,ChartOfAccountsWizard
,ChartOfCalculationTypesWizard
,ColumnWizard
,CommandGroupWizard
,CommonModuleWizard
,CommonPictureWizard
,CubeWizard
,DataProcessorWizard
,DimensionTableWizard
,DocumentJournalWizard
,DocumentNumeratorWizard
,DocumentWizard
,DtAefMdWithTypeNewWizard
,EnumValueWizard
,EnumWizard
,EventSubscriptionWizard
,ExchangePlanWizard
,ExternalDataSourceWizard
,FormWizard
,FunctionalOptionParameterWizard
,FunctionalOptionWizard
,HTTPServiceWizard
,InformationRegisterWizard
,IntegrationServiceChannelWizard
,IntegrationServiceWizard
,LanguageWizard
,MethodWizard
,OperationWizard
,ParameterWizard
,RecalculationDimensionWizard
,RecalculationWizard
,ReportWizard
,RoleWizard
,ScheduledJobWizard
,SequenceWizard
,SettingsStorageWizard
,StyleItemWizard
,StyleWizard
,SubsystemWizard
,TableWizard
,TabularSectionWizard
,TaskWizard
,TemplateWizard
,URLTemplateWizard
,WebServiceWizard
,WSReferenceWizard
,XdtoPackageWizard
public abstract class DtAefMdNewWizard<M extends MdObject> extends DtAefNewWizard<M>
-
-
Field Summary
Fields Modifier and Type Field Description protected IMdObjectAvailability
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 DtAefMdNewWizard()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected MdModelNewWizardPageComponent<? extends IMdObjectModel>
createMdMainPage()
protected MdObjectModel<M>
createMdObjectModel()
void
dispose()
protected void
disposeMainPageComponent()
Disposes the main page component if it is not null.protected void
disposeMdObjectModel()
Disposes the model if it is not null.void
doAddPages()
TheDtNewWizard
implementation of this wizard method does nothing.protected MdModelNewWizardPageComponent<? extends IMdObjectModel>
getMainPageComponent()
Creates a new instance of the main page component.protected IMdObjectModel
getMdObjectModel()
ReturnsIMdObjectModel
.protected IModel
getModelForPageComponent(NewWizardPageComponent<?> component)
Returns AEF model for the given component.protected abstract String
getNamePrefix()
Returns the name prefix for the editingMdObject
.protected String
getProjectNamePrefix()
Returns the project prefix for the editingMdObject
with awareness of context project ornull
if none.protected abstract void
setupMdMainPageViewModel(NewWizardPageViewModel viewModel)
Setups theNewWizardPageViewModel
for main page.-
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, integrateModel, 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
-
-
-
-
Field Detail
-
mdObjectAvailability
@Inject protected IMdObjectAvailability mdObjectAvailability
-
-
Method Detail
-
doAddPages
public void doAddPages()
Description copied from class:DtNewWizard
TheDtNewWizard
implementation of this wizard method does nothing. Subclasses should extend if extra pages need to be added before the wizard opens. New pages should be added by callingaddPage
.- Overrides:
doAddPages
in classDtNewWizard<M extends MdObject>
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceorg.eclipse.jface.wizard.IWizard
- Overrides:
dispose
in classDtAefNewWizard<M extends MdObject>
-
disposeMainPageComponent
protected void disposeMainPageComponent()
Disposes the main page component if it is not null.
-
disposeMdObjectModel
protected void disposeMdObjectModel()
Disposes the model if it is not null.
-
getMainPageComponent
protected MdModelNewWizardPageComponent<? extends IMdObjectModel> getMainPageComponent()
Creates a new instance of the main page component.- Returns:
- the main page component.
-
getMdObjectModel
protected IMdObjectModel getMdObjectModel()
ReturnsIMdObjectModel
.- Returns:
- the
IMdObjectModel
-
createMdObjectModel
protected MdObjectModel<M> createMdObjectModel()
- Returns:
- newly created
IMdObjectModel
-
createMdMainPage
protected MdModelNewWizardPageComponent<? extends IMdObjectModel> createMdMainPage()
- Returns:
- a newly created page component.
-
getModelForPageComponent
protected IModel getModelForPageComponent(NewWizardPageComponent<?> component)
Description copied from class:DtAefNewWizard
Returns AEF model for the given component. Override to support components that is added as pages withDtAefNewWizard.addPage(NewWizardPageComponent)
.- Overrides:
getModelForPageComponent
in classDtAefNewWizard<M extends MdObject>
- Parameters:
component
- the component- Returns:
- model for the given component or
null
.
-
getProjectNamePrefix
protected String getProjectNamePrefix()
Returns the project prefix for the editingMdObject
with awareness of context project ornull
if none.- Returns:
- the project prefix for the editing
MdObject
with awareness of context project ornull
if none.
-
getNamePrefix
protected abstract String getNamePrefix()
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.- Returns:
- the name prefix.
-
setupMdMainPageViewModel
protected abstract void setupMdMainPageViewModel(NewWizardPageViewModel viewModel)
Setups theNewWizardPageViewModel
for main page.
Actually it is needed to set title and description features.- Parameters:
viewModel
- the view model.
-
-