Interface TemplateModelWorkspaceMigrator


  • public interface TemplateModelWorkspaceMigrator
    A service that provides methods to get all uris of template models in the workspace that need to be migrated and to migrate these models.
    Since:
    1.17
    Author:
    Lucas Koehler
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.List<org.eclipse.emf.common.util.URI> getURIsToMigrate()
      Returns a list of template model URIs that need to be migrated.
      void performMigration​(org.eclipse.emf.common.util.URI resourceURI)
      Migrates a template model to the latest version.
    • Method Detail

      • getURIsToMigrate

        java.util.List<org.eclipse.emf.common.util.URI> getURIsToMigrate()
                                                                  throws org.eclipse.core.runtime.CoreException
        Returns a list of template model URIs that need to be migrated.
        Returns:
        the template model URIs
        Throws:
        org.eclipse.core.runtime.CoreException - if a problem occurred while searching the workspace
      • performMigration

        void performMigration​(org.eclipse.emf.common.util.URI resourceURI)
                       throws TemplateModelMigrationException
        Migrates a template model to the latest version.
        Parameters:
        resourceURI - The URI of the template model that should be migrated.
        Throws:
        TemplateModelMigrationException - If the migration fails.