Package com._1c.g5.v8.dt.md.ui.wizards
Class AbstractProjectWizard.WizardModel<M extends MdObject>
- java.lang.Object
-
- com._1c.g5.aef2.validators.Validable
-
- com._1c.g5.aef2.models.Model
-
- com._1c.g5.aef2.models.CompoundModel
-
- com._1c.g5.v8.dt.md.ui.wizards.AbstractProjectWizard.WizardModel<M>
-
- All Implemented Interfaces:
ICompoundModel,IModel,IValidable
- Direct Known Subclasses:
AbstractDependentProjectWizard.DependentWizardModel,ConfigurationWizardModel
- Enclosing class:
- AbstractProjectWizard<M extends MdObject,T extends AbstractProjectWizard.WizardModel<M>>
public static class AbstractProjectWizard.WizardModel<M extends MdObject> extends CompoundModel
Dependent wizard model instance.
-
-
Field Summary
Fields Modifier and Type Field Description IValue<String>commentIValue<String>nameField values:IValue<Path>projectLocationIValue<String>projectNameIValue<String>synonymIValue<Boolean>useDefaultLocationIValue<Version>versionAbstractProjectWizard<M,?>wizardParent wizard.
-
Constructor Summary
Constructors Modifier Constructor Description protectedWizardModel(AbstractProjectWizard<M,?> wizard)Constructor ofAbstractProjectWizard.WizardModel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommit()Commits the changes to the data model.protected voidcommit(String language)Docommit()with specified language code for synonym.protected StringgenerateProjectName()Generate project name by object name.protected StringgetOldName()Returns the previous name value.protected org.eclipse.core.databinding.validation.IValidatorgetProjectNameValidator()Returns project name validator in the wizard.-
Methods inherited from class com._1c.g5.aef2.models.CompoundModel
addModel, dispose, getChange, getModels, isOnline, setComponent, validate
-
Methods inherited from class com._1c.g5.aef2.models.Model
addModelListener, beginExternalUpdate, checkOffline, checkOnline, createWorkingCopy, discard, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, notifyModelChanged, notifyModelCommitted, removeModelListener, setOnline, toString
-
Methods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, getValidatorTarget, removeValidator, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, createWorkingCopy, discard, getComponent, removeModelListener
-
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate
-
-
-
-
Field Detail
-
wizard
public final AbstractProjectWizard<M extends MdObject,?> wizard
Parent wizard.
-
-
Constructor Detail
-
WizardModel
protected WizardModel(AbstractProjectWizard<M,?> wizard)
Constructor ofAbstractProjectWizard.WizardModel.
-
-
Method Detail
-
commit
public void commit()
Description copied from interface:IModelCommits the changes to the data model.
-
getOldName
protected String getOldName()
Returns the previous name value.- Returns:
- the oldName
-
commit
protected void commit(String language)
Docommit()with specified language code for synonym.- Parameters:
language- code, cannot benull
-
getProjectNameValidator
protected org.eclipse.core.databinding.validation.IValidator getProjectNameValidator()
Returns project name validator in the wizard.- Returns:
- project name validator in the wizard, never
null
-
generateProjectName
protected String generateProjectName()
Generate project name by object name.- Returns:
- project name, never
null
-
-