Class BmMultilanguageFormatModel
- 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.map.MapModel<K,V>
-
- com._1c.g5.v8.dt.aef2.bm.models.BmMap<String,String>
-
- com._1c.g5.v8.dt.md.ui.aef.models.BmMultilanguageModel
-
- com._1c.g5.v8.dt.md.ui.aef.models.BmMultilanguageFormatModel
-
- All Implemented Interfaces:
IAttribute<IBmObject,org.eclipse.emf.ecore.EStructuralFeature>
,IEditableModel
,IEmfAttribute<IBmObject>
,IModel
,IEmfMapAttribute<String,String,IBmObject>
,IMap<String,String>
,IValidable
,IModelApiAwareModel
,IMultilanguageModel
,Map<String,String>
public class BmMultilanguageFormatModel extends BmMultilanguageModel
The BM model for editing of 'format' multilanguage features. The model in own BM task changes the related 'edit format' feature in accordance with the main 'format' feature change.
-
-
Constructor Summary
Constructors Constructor Description BmMultilanguageFormatModel(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, org.eclipse.emf.ecore.EStructuralFeature editFormatFeature, IV8Project v8project, IEditingLanguageManager languageManager)
Creates a new model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IModelApiTaskN<Void>
createTask(IBmObject object, org.eclipse.emf.ecore.EStructuralFeature feature, Map<String,String> valueToApply)
Creates anIModelApiTaskN
that executes during applying changes.protected void
setObjectValue(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, Map<String,String> valueToApply)
Sets the new value of the provided model object feature during the commit.
The method is invoked within the task, so the given objects have the relevant state (e.g.-
Methods inherited from class com._1c.g5.v8.dt.md.ui.aef.models.BmMultilanguageModel
getEditingLanguageCode, getV8project, getVersion
-
Methods inherited from class com._1c.g5.v8.dt.aef2.bm.models.BmMap
dispose, getChange, getModelApi, getObject, getProperty, setModelApi
-
Methods inherited from class com._1c.g5.aef2.models.map.MapModel
addMapListener, clear, containsKey, containsValue, createWorkingCopy, discard, entrySet, fill, fromCollection, get, getCommittedMap, getUncommittedMap, isElementEqual, isEmpty, isEqual, keySet, notifyMapChanged, put, putAll, queueNotifyMapChanged, remove, removeMapListener, setCommittedMap, setMap, setUncommitedMap, size, toString, values
-
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, getValidatorTarget, 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.IEditableModel
isEditable, setEditable
-
Methods inherited from interface com._1c.g5.aef2.models.map.IMap
addMapListener, createWorkingCopy, fill, isEqual, removeMapListener
-
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 java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Constructor Detail
-
BmMultilanguageFormatModel
public BmMultilanguageFormatModel(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, org.eclipse.emf.ecore.EStructuralFeature editFormatFeature, IV8Project v8project, IEditingLanguageManager languageManager)
Creates a new model.- Parameters:
object
- the object, cannot benull
.feature
- the feature, cannot benull
.editFormatFeature
- the related 'edit format' feature to change , cannot benull
.projectParameters
- the project parameters, cannot benull
.languageManager
- the language manager, cannot benull
.
-
-
Method Detail
-
createTask
protected IModelApiTaskN<Void> createTask(IBmObject object, org.eclipse.emf.ecore.EStructuralFeature feature, Map<String,String> valueToApply)
Description copied from class:BmMap
Creates anIModelApiTaskN
that executes during applying changes.- Overrides:
createTask
in classBmMap<String,String>
- Parameters:
object
- the object to change, cannot benull
.feature
- the feature the feature to change, cannot benull
.valueToApply
- the value to apply.- Returns:
- the created
IModelApiTaskN
.
-
setObjectValue
protected void setObjectValue(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, Map<String,String> valueToApply)
Description copied from class:BmMap
Sets the new value of the provided model object feature during the commit.
The method is invoked within the task, so the given objects have the relevant state (e.g. attached to transaction).- Overrides:
setObjectValue
in classBmMap<String,String>
- Parameters:
object
- the object to set new value, cannot benull
.feature
- the feture to set, cannot benull
.valueToApply
- the new value to set, can benull
.
-
-