Interface DmrToSegmentsMigrator.PreReplaceProcessor

  • All Known Implementing Classes:
    TemplateModelEditorPart.DmrSelectorPreReplaceProcessor
    Enclosing interface:
    DmrToSegmentsMigrator
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface DmrToSegmentsMigrator.PreReplaceProcessor
    Processor that is executed after segments have been generated for the new segment based dmr but before the legacy dmr is replaced in the model. The processor may alter any of the two dmrs or any other part of the containing resource.
    • Method Detail

      • process

        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.

        This may also alter the model including the legacy dmr or the segment dmr.

        Parameters:
        legacyDmr - The legacy dmr which will be replaced in the model
        segmentDmr - The segment based dmr which is already filled with segments based on the legacy dmr