public interface DmrToSegmentsMigrator
Modifier and Type | Interface and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
needsMigration(org.eclipse.emf.common.util.URI resourceUri)
Checks whether a view model still contains legacy domain model references that need to be migrated to segments.
|
void |
performMigration(org.eclipse.emf.common.util.URI resourceUri,
DmrToSegmentsMigrator.PreReplaceProcessor... preReplaceProcessors)
Migrates a view model to use segment based DMRs.
|
boolean needsMigration(org.eclipse.emf.common.util.URI resourceUri)
resourceUri
- The URI of the view model that should be checked.void performMigration(org.eclipse.emf.common.util.URI resourceUri, DmrToSegmentsMigrator.PreReplaceProcessor... preReplaceProcessors) throws DmrToSegmentsMigrationException
resourceUri
- The URI of the view model that should be migrated.preReplaceProcessors
- DmrToSegmentsMigrator.PreReplaceProcessor
which are executed just before a legacy dmr is replaced
with the corresponding segment dmr. The processors are always executed in the given orderDmrToSegmentsMigrationException
- if the migration failsCopyright © 2019. All rights reserved.