Package com._1c.g5.v8.dt.md.ui.wizards
Class PredefinedItemWizard<M extends PredefinedItem>
- 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.PredefinedItemWizard<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:
PredefinedAccountWizard
,PredefinedCalculationTypeWizard
,PredefinedCharacteristicTypeWizard
,PredefinedFolderWizard
public class PredefinedItemWizard<M extends PredefinedItem> extends DtAefNewWizard<M>
DtAefNewWizard
implementation that is used forPredefinedItem
creation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
PredefinedItemWizard.ByFeatures
-
Field Summary
Fields Modifier and Type Field Description static String
WIZARD_ID
Wizard ID const.-
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 PredefinedItemWizard()
Instantiates a new predefined item wizard.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createModel()
Creates a model from the information stored in the wizard context.protected PredefinedItemNewWizardPage<? extends IPredefinedItemModel>
createPredefinedItemMainPage()
protected IPredefinedItemModel
createPredefinedItemModel()
void
dispose()
void
doAddPages()
TheDtNewWizard
implementation of this wizard method does nothing.protected IModel
getModelForPageComponent(NewWizardPageComponent<?> component)
Returns AEF model for the given component.protected void
preProcessBmIntegration(IBmTransaction transaction, org.eclipse.core.runtime.IProgressMonitor monitor)
Descendants could add additional data preprocessing before integrated to the model.-
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, createPageControls, detectModelClass, detectParent, getContext, getPreviousPage, getSelection, init, integrateModel, integrateModel, performFinish, postProcessBmIntegration, 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
-
WIZARD_ID
public static final String WIZARD_ID
Wizard ID const.- See Also:
- Constant Field Values
-
-
Method Detail
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceorg.eclipse.jface.wizard.IWizard
- Overrides:
dispose
in classDtAefNewWizard<M extends PredefinedItem>
-
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 PredefinedItem>
-
createModel
public void createModel()
Description copied from class:DtNewWizard
Creates a model from the information stored in the wizard context. Stores the model in the wizard context. Called afterIDtNewWizard.detectModelClass()
.- Specified by:
createModel
in interfaceIDtNewWizard<M extends PredefinedItem>
- Overrides:
createModel
in classDtNewWizard<M extends PredefinedItem>
-
preProcessBmIntegration
protected void preProcessBmIntegration(IBmTransaction transaction, org.eclipse.core.runtime.IProgressMonitor monitor)
Description copied from class:DtNewWizard
Descendants could add additional data preprocessing before integrated to the model.- Overrides:
preProcessBmIntegration
in classDtNewWizard<M extends PredefinedItem>
- Parameters:
transaction
- the transaction the task is being executed in, cannot benull
monitor
- the task progress monitor, cannot benull
-
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 PredefinedItem>
- Parameters:
component
- the component- Returns:
- model for the given component or
null
.
-
createPredefinedItemMainPage
protected PredefinedItemNewWizardPage<? extends IPredefinedItemModel> createPredefinedItemMainPage()
-
createPredefinedItemModel
protected IPredefinedItemModel createPredefinedItemModel()
-
-