Class PredefinedDataComponent.PredefinedDataMapper
- java.lang.Object
-
- com._1c.g5.v8.dt.ui.aef.mappers.AefLabelMapper<org.eclipse.emf.ecore.EObject,TreeItemViewModel>
-
- com._1c.g5.v8.dt.md.ui.editor.predefineddata.PredefinedDataComponent.PredefinedDataMapper
-
- All Implemented Interfaces:
IMapper<org.eclipse.emf.ecore.EObject,TreeItemViewModel>
,IViewModelsMapper<org.eclipse.emf.ecore.EObject,TreeItemViewModel>
- Enclosing class:
- PredefinedDataComponent
protected class PredefinedDataComponent.PredefinedDataMapper extends AefLabelMapper<org.eclipse.emf.ecore.EObject,TreeItemViewModel>
Maps model object with the predefined data tree items.
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.ui.aef.mappers.AefLabelMapper
labelProvider
-
-
Constructor Summary
Constructors Constructor Description PredefinedDataMapper(ILabelProvider labelProvider)
Create instance ofPredefinedDataComponent.PredefinedDataMapper
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TreeItemViewModel
createItemViewModel()
Creates a view model item.void
updateItemViewModel(TreeItemViewModel item, org.eclipse.emf.ecore.EObject modelValue)
Updates item view model.-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.mappers.AefLabelMapper
createMapKey, createModelToView, getMappedModels, getMappedViewModels, mapModelToView, mapViewToModel
-
-
-
-
Constructor Detail
-
PredefinedDataMapper
public PredefinedDataMapper(ILabelProvider labelProvider)
Create instance ofPredefinedDataComponent.PredefinedDataMapper
- Parameters:
labelProvider
- the label provider for mapping labels of domain model object to view model, cannot benull
-
-
Method Detail
-
createItemViewModel
protected TreeItemViewModel createItemViewModel()
Description copied from class:AefLabelMapper
Creates a view model item.- Overrides:
createItemViewModel
in classAefLabelMapper<org.eclipse.emf.ecore.EObject,TreeItemViewModel>
- Returns:
- the newly created view model, cannot be
null
-
updateItemViewModel
public void updateItemViewModel(TreeItemViewModel item, org.eclipse.emf.ecore.EObject modelValue)
Description copied from interface:IViewModelsMapper
Updates item view model.- Specified by:
updateItemViewModel
in interfaceIViewModelsMapper<org.eclipse.emf.ecore.EObject,TreeItemViewModel>
- Overrides:
updateItemViewModel
in classAefLabelMapper<org.eclipse.emf.ecore.EObject,TreeItemViewModel>
- Parameters:
item
- the item view model, cannot benull
modelValue
- modelValue the model value, cannot benull
-
-