Package com._1c.g5.v8.dt.md.ui.wizards
Class AbstractDependentProjectWizard<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.AbstractProjectWizard<M,AbstractDependentProjectWizard.DependentWizardModel<M>>
-
- com._1c.g5.v8.dt.md.ui.wizards.AbstractDependentProjectWizard<M>
-
- 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:
ExternalDataProcessorWizardBase
,ExternalReportWizardBase
public abstract class AbstractDependentProjectWizard<M extends MdObject> extends AbstractProjectWizard<M,AbstractDependentProjectWizard.DependentWizardModel<M>>
Abstract wizard of dependent projects or their root objects.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
AbstractDependentProjectWizard.DependedRootObjectPage
Root object wizard page.static class
AbstractDependentProjectWizard.DependentWizardModel<M extends MdObject>
Dependent wizard model instance.-
Nested classes/interfaces inherited from class com._1c.g5.v8.dt.md.ui.wizards.AbstractProjectWizard
AbstractProjectWizard.ObjectNameValidator, AbstractProjectWizard.WizardModel<M extends MdObject>
-
-
Field Summary
Fields Modifier and Type Field Description protected String
id
-
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 AbstractDependentProjectWizard()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractDependentProjectWizard.DependentWizardModel<M>
createWizardModel()
Create wizard model.void
doAddPages()
TheDtNewWizard
implementation of this wizard method does nothing.protected IConfigurationProject
getBaseProject()
Returns selected base project in the wizard.protected IConfigurationProject
getBaseProject(String name)
Returns base project by the given name.protected Collection<String>
getExistedNames()
Returns the existed names for generate init object name.protected org.eclipse.core.databinding.validation.IValidator
getNameValidator()
Returns validator for creating object name.-
Methods inherited from class com._1c.g5.v8.dt.md.ui.wizards.AbstractProjectWizard
dispose, getContextHelpId, getInitObjectName, getModelForPageComponent, getObjectNamePrefix, getOrCreateWizardModel, getPageDescription, getPageTitle, getProjectName, getProjectPath, init, needToCreateProject, setNeedToCreateProject, setObjectNamePrefix, setObjectTypeNameMessage, setPageDescription, setPageTitle
-
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, integrateModel, 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
-
id
protected final String id
- See Also:
- Constant Field Values
-
-
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 classAbstractProjectWizard<M extends MdObject,AbstractDependentProjectWizard.DependentWizardModel<M extends MdObject>>
-
createWizardModel
protected AbstractDependentProjectWizard.DependentWizardModel<M> createWizardModel()
Create wizard model.- Overrides:
createWizardModel
in classAbstractProjectWizard<M extends MdObject,AbstractDependentProjectWizard.DependentWizardModel<M extends MdObject>>
- Returns:
- a new wizard model, never
null
-
getBaseProject
protected IConfigurationProject getBaseProject()
Returns selected base project in the wizard. May returnnull
.- Returns:
- the selected base project in the wizard or
null
if none
-
getBaseProject
protected IConfigurationProject getBaseProject(String name)
Returns base project by the given name. May returnnull
.- Parameters:
name
- the base project name, cannot benull
- Returns:
- the base project or
null
if none
-
getExistedNames
protected Collection<String> getExistedNames()
Description copied from class:AbstractProjectWizard
Returns the existed names for generate init object name.- Overrides:
getExistedNames
in classAbstractProjectWizard<M extends MdObject,AbstractDependentProjectWizard.DependentWizardModel<M extends MdObject>>
- Returns:
- collection of already taken names, cannot be
null
-
getNameValidator
protected org.eclipse.core.databinding.validation.IValidator getNameValidator()
Description copied from class:AbstractProjectWizard
Returns validator for creating object name.- Overrides:
getNameValidator
in classAbstractProjectWizard<M extends MdObject,AbstractDependentProjectWizard.DependentWizardModel<M extends MdObject>>
- Returns:
- object name validator, cannot be
null
-
-