Class PromptConfirmationOnRestructureModel.Factory
java.lang.Object
com._1c.g5.v8.dt.internal.platform.services.ui.editors.infobase.PromptConfirmationOnRestructureModel.Factory
- All Implemented Interfaces:
IModelFactory
- Enclosing class:
- PromptConfirmationOnRestructureModel
public static class PromptConfirmationOnRestructureModel.Factory
extends Object
implements IModelFactory
Factory for
PromptConfirmationOnRestructureModel
.
The factory is supposed to create models for a single object that is InfobaseReference
.
Each instance of the factory should be used for a single instance of the model.
To set an action when value is changed, override #onExternalChange(boolean)
or
#onInternalChange(boolean)
. By default, they do not do anything.
The factory life time is supposed to be the same as model lifetime.-
Constructor Summary
ConstructorsConstructorDescriptionFactory
(IInfobasePreferencesManager infobasePreferencesManager) Creates new instance. -
Method Summary
Modifier and TypeMethodDescriptioncreateModel
(IDefinition definition, org.eclipse.emf.ecore.EObject... objects) CreatesIModel
instance by the given arguments.protected void
Called when value is changed from outside.protected void
Called when value is changed internally.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com._1c.g5.aef2.standard.definitions.models.IModelFactory
createModel
-
Constructor Details
-
Factory
Creates new instance.- Parameters:
infobasePreferencesManager
- Preferences manager that is to be used to load initial value and save resulting value of models created by this factory. Must not benull
.
-
-
Method Details
-
createModel
Description copied from interface:IModelFactory
CreatesIModel
instance by the given arguments.- Specified by:
createModel
in interfaceIModelFactory
- Parameters:
definition
- the definition, cannot benull
.objects
- the objects for that the model is created.- Returns:
- the newly created model.
-
onExternalChange
Called when value is changed from outside.- Parameters:
model
- The model that has been changed. Nevernull
.- See Also:
-
onInternalChange
Called when value is changed internally.- Parameters:
model
- The model that has been changed. Nevernull
.- See Also:
-