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 boolean
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 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 benull
feature
- the object feature, cannot benull
-
-
Method Detail
-
restoreFromFile
public void restoreFromFile(String filePath)
Description copied from interface:IAddInModel
Restores the addin data from file- Specified by:
restoreFromFile
in interfaceIAddInModel
- Parameters:
filePath
- the file path, cannot benull
-
saveToFile
public void saveToFile(String filePath)
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
-
-