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 TypeMethodDescriptionboolean
canEdit()
Checks that the model is editable.void
restoreFromFile
(String filePath) Restores the addin data from filevoid
saveToFile
(String filePath) Save the currentAddIn
to 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 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 benull
feature
- the object feature, cannot benull
-
-
Method Details
-
restoreFromFile
Description copied from interface:IAddInModel
Restores the addin data from file- Specified by:
restoreFromFile
in interfaceIAddInModel
- Parameters:
filePath
- the file path, cannot benull
-
saveToFile
Description copied from interface:IAddInModel
Save the currentAddIn
to file.- Specified by:
saveToFile
in interfaceIAddInModel
- Parameters:
filePath
- the file path, cannot benull
-
canEdit
public boolean canEdit()Description copied from interface:IAddInModel
Checks that the model is editable.- Specified by:
canEdit
in interfaceIAddInModel
- Returns:
true
if the model is editable orfalse
if the model is read-only
-