Class AddInModel

    • Constructor Detail

      • 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 Detail

      • 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