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 Details

    • Factory

      public Factory(IInfobasePreferencesManager infobasePreferencesManager)
      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 be null.
  • Method Details

    • createModel

      public IModel createModel(IDefinition definition, org.eclipse.emf.ecore.EObject... objects)
      Description copied from interface: IModelFactory
      Creates IModel instance by the given arguments.
      Specified by:
      createModel in interface IModelFactory
      Parameters:
      definition - the definition, cannot be null.
      objects - the objects for that the model is created.
      Returns:
      the newly created model.
    • onExternalChange

      protected void onExternalChange(PromptConfirmationOnRestructureModel model)
      Called when value is changed from outside.
      Parameters:
      model - The model that has been changed. Never null.
      See Also:
    • onInternalChange

      protected void onInternalChange(PromptConfirmationOnRestructureModel model)
      Called when value is changed internally.
      Parameters:
      model - The model that has been changed. Never null.
      See Also: