Viewpoint – Provide custom migrate participants.

  1. Viewpoint - Provide custom migrate participants.
    1. Goals
    2. Extension point
    3. MigrationParticipants implementation

Goals

In some cases, a migration of representation files or VSMs between two versions of meta-model is required. The migration process has been rewritten to be performed automatically at resource loading time. This migration is transparent for the end-user.
If you have extended Viewpoint meta-models, you may need to implement your own migration rules.

To contribute to the Viewpoint migration process, you need to implement an fr.obeo.dsl.viewpoint.business.api.migration.IMigrationParticipant and provide it through the fr.obeo.dsl.viewpoint.migrationParticipant extension point.

Extension point

The fr.obeo.dsl.viewpoint.migrationParticipant extension point allows to contribute migration participants. Each contribution must provide an implementation of IMigrationParticipant and a «kind» attribute which gives informations about what kind of file is concerned ( REPRESENTATIONSFILE_KIND for Representation files and VSM_KIND for VSMs).

MigrationParticipants implementation

Each methods of an IMigrationParticipant receives the current version of the model to migrate, corresponding to the fr.obeo.dsl.viewpoint bundle version.