Package com._1c.g5.v8.dt.addin.ui.aef
Class AddInModel
java.lang.Object
- All Implemented Interfaces:
IAttribute<IBmObject,,org.eclipse.emf.ecore.EStructuralFeature> IEditableModel,IEmfAttribute<IBmObject>,IModel,IEmfValueAttribute<AddIn,,IBmObject> IValue<AddIn>,IValidable,IAddInModel,IModelApiAwareModel
The bm value model implementation for
IAddInModel-
Constructor Summary
ConstructorsConstructorDescriptionAddInModel(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IModelEditingSupport modelEditingSupport) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleancanEdit()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, setObjectValueMethods 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, toStringMethods inherited from class com._1c.g5.aef2.models.EditableModel
isEditable, setEditableMethods inherited from class com._1c.g5.aef2.models.Model
addModelListener, beginExternalUpdate, checkOffline, checkOnline, commit, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, isOnline, notifyModelChanged, notifyModelCommitted, removeModelListener, setComponent, setOnlineMethods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, removeValidator, validate, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, discard, dispose, getChange, getComponent, isOnline, removeModelListener, setComponentMethods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validateMethods inherited from interface com._1c.g5.aef2.models.value.IValue
addValueListener, createWorkingCopy, get, isEqual, removeValueListener, set
-
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 benullfeature- the object feature, cannot benull
-
-
Method Details
-
restoreFromFile
Description copied from interface:IAddInModelRestores the addin data from file- Specified by:
restoreFromFilein interfaceIAddInModel- Parameters:
filePath- the file path, cannot benull
-
saveToFile
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
-