Class AddInModel

All Implemented Interfaces:
IAttribute<IBmObject,org.eclipse.emf.ecore.EStructuralFeature>, IEditableModel, IEmfAttribute<IBmObject>, IModel, IEmfValueAttribute<AddIn,IBmObject>, IValue<AddIn>, IValidable, IAddInModel, IModelApiAwareModel

public class AddInModel extends BmValue<AddIn> implements IAddInModel
The bm value model implementation for IAddInModel
  • Constructor Details

    • AddInModel

      public AddInModel(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IModelEditingSupport modelEditingSupport)
      Constructor
      Parameters:
      object - the context object, cannot be null
      feature - the object feature, cannot be null
  • Method Details

    • restoreFromFile

      public void restoreFromFile(String filePath)
      Description copied from interface: IAddInModel
      Restores the addin data from file
      Specified by:
      restoreFromFile in interface IAddInModel
      Parameters:
      filePath - the file path, cannot be null
    • saveToFile

      public void saveToFile(String filePath)
      Description copied from interface: IAddInModel
      Save the current AddIn to file.
      Specified by:
      saveToFile in interface IAddInModel
      Parameters:
      filePath - the file path, cannot be null
    • canEdit

      public boolean canEdit()
      Description copied from interface: IAddInModel
      Checks that the model is editable.
      Specified by:
      canEdit in interface IAddInModel
      Returns:
      true if the model is editable or false if the model is read-only