Class TemplateModelEditorPart.DmrSelectorPreReplaceProcessor
- java.lang.Object
-
- org.eclipse.emf.ecp.view.template.tooling.editor.TemplateModelEditorPart.DmrSelectorPreReplaceProcessor
-
- All Implemented Interfaces:
DmrToSegmentsMigrator.PreReplaceProcessor
- Enclosing class:
- TemplateModelEditorPart
protected static class TemplateModelEditorPart.DmrSelectorPreReplaceProcessor extends java.lang.Object implements DmrToSegmentsMigrator.PreReplaceProcessor
DmrToSegmentsMigrator.PreReplaceProcessor
for the legacy dmr migration which extracts the root EClass from a legacy dmr and sets it to its containingVTDomainModelReferenceSelector
.
-
-
Constructor Summary
Constructors Constructor Description DmrSelectorPreReplaceProcessor(LegacyDmrToRootEClass dmrToRootEClass)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
process(VDomainModelReference legacyDmr, VDomainModelReference segmentDmr)
Processes the legacy dmr, the segment dmr or any related EObject before the legacy dmr is replaced with the segment dmr in the model.
-
-
-
Constructor Detail
-
DmrSelectorPreReplaceProcessor
public DmrSelectorPreReplaceProcessor(LegacyDmrToRootEClass dmrToRootEClass)
Default constructor.- Parameters:
dmrToRootEClass
- TheLegacyDmrToRootEClass
-
-
Method Detail
-
process
public void process(VDomainModelReference legacyDmr, VDomainModelReference segmentDmr)
Description copied from interface:DmrToSegmentsMigrator.PreReplaceProcessor
Processes the legacy dmr, the segment dmr or any related EObject before the legacy dmr is replaced with the segment dmr in the model.
This may also alter the model including the legacy dmr or the segment dmr.
- Specified by:
process
in interfaceDmrToSegmentsMigrator.PreReplaceProcessor
- Parameters:
legacyDmr
- The legacy dmr which will be replaced in the modelsegmentDmr
- The segment based dmr which is already filled with segments based on the legacy dmr
-
-