Package com._1c.g5.v8.dt.addin.ui.aef
Class AddInModel
- java.lang.Object
-
- com._1c.g5.aef2.validators.Validable
-
- com._1c.g5.aef2.models.Model
-
- com._1c.g5.aef2.models.EditableModel
-
- com._1c.g5.aef2.models.value.Value<T>
-
- com._1c.g5.v8.dt.aef2.bm.models.BmValue<AddIn>
-
- com._1c.g5.v8.dt.addin.ui.aef.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 forIAddInModel
-
-
Constructor Summary
Constructors Constructor Description AddInModel(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IModelEditingSupport modelEditingSupport)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanEdit()Checks that the model is editable.voidrestoreFromFile(String filePath)Restores the addin data from filevoidsaveToFile(String filePath)Save the currentAddInto file.-
Methods inherited from class com._1c.g5.v8.dt.aef2.bm.models.BmValue
adapt, createTask, dispose, getChange, getModelApi, getObject, getObjectValue, getProperty, processBmValueChange, setModelApi, setObjectValue
-
Methods inherited from class com._1c.g5.aef2.models.value.Value
addValueListener, createWorkingCopy, discard, get, getCommittedValue, getUncommittedValue, getValidatorTarget, isEqual, notifyValueChanged, queueNotifyValueChanged, removeValueListener, set, setCommittedValue, setUncommittedValue, setValue, toString
-
Methods inherited from class com._1c.g5.aef2.models.EditableModel
isEditable, setEditable
-
Methods inherited from class com._1c.g5.aef2.models.Model
addModelListener, beginExternalUpdate, checkOffline, checkOnline, commit, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, isOnline, notifyModelChanged, notifyModelCommitted, removeModelListener, setComponent, setOnline
-
Methods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, removeValidator, validate, 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, commit, discard, dispose, getChange, getComponent, isOnline, removeModelListener, setComponent
-
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
Methods inherited from interface com._1c.g5.aef2.models.value.IValue
addValueListener, createWorkingCopy, get, isEqual, removeValueListener, set
-
-
-
-
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 benullfeature- the object feature, cannot benull
-
-
Method Detail
-
restoreFromFile
public void restoreFromFile(String filePath)
Description copied from interface:IAddInModelRestores the addin data from file- Specified by:
restoreFromFilein interfaceIAddInModel- Parameters:
filePath- the file path, cannot benull
-
saveToFile
public void saveToFile(String filePath)
Description copied from interface:IAddInModelSave the currentAddInto file.- Specified by:
saveToFilein interfaceIAddInModel- Parameters:
filePath- the file path, cannot benull
-
canEdit
public boolean canEdit()
Description copied from interface:IAddInModelChecks that the model is editable.- Specified by:
canEditin interfaceIAddInModel- Returns:
trueif the model is editable orfalseif the model is read-only
-
-