Class ProjectDataMigrationScenarioPhaseAdapter

java.lang.Object
com._1c.g5.v8.dt.migration.ProjectDataMigrationScenarioPhaseAdapter
All Implemented Interfaces:
IProjectDataMigrationScenario
Direct Known Subclasses:
BmInternalStoreMigration, GeographicalSchemaMigration, LaunchConfigurationsMigration, PredefinedElementWithTypedCodeMigration, SettingsComposerFormsMigration, UnsupportedObjectImport

public abstract class ProjectDataMigrationScenarioPhaseAdapter extends Object implements IProjectDataMigrationScenario
Convenience implementation of the IProjectDataMigrationScenario with distinguished migration phases declared as a separate overridable methods.
  • Constructor Details

    • ProjectDataMigrationScenarioPhaseAdapter

      public ProjectDataMigrationScenarioPhaseAdapter()
  • Method Details

    • migrateData

      public void migrateData(org.eclipse.core.resources.IProject project, MigrationPhase migrationPhase, ProjectContext projectContext) throws org.eclipse.core.runtime.CoreException
      Description copied from interface: IProjectDataMigrationScenario
      Migrates data of EDT project.
      Specified by:
      migrateData in interface IProjectDataMigrationScenario
      Parameters:
      project - The target project which internal data should be migrated.
      migrationPhase - Current migration phase.
      projectContext - Migration being used by different stages of the migration to exchange the data.
      Throws:
      org.eclipse.core.runtime.CoreException
    • doFinish

      protected void doFinish(ProjectContext projectContext, MigrationContext migrationContext) throws org.eclipse.core.runtime.CoreException
      Performs migration activities during the finishing stage of the migration.
      Parameters:
      projectContext - The service project context for the project being migrated at the moment.
      migrationContext - The migration process context.
      Throws:
      org.eclipse.core.runtime.CoreException - Throws exception in case of fatal problems during migration.
    • doInternalStoreMigration

      protected void doInternalStoreMigration(ProjectContext projectContext, MigrationContext migrationContext)
      Performs migration activities during the internal store migration (like internal BM stores, etc).
      Parameters:
      projectContext - The service project context for the project being migrated at the moment.
      migrationContext - The migration process context.
      Throws:
      org.eclipse.core.runtime.CoreException - Throws exception in case of fatal problems during migration.
    • doInternalStoreMigrationPreparation

      protected void doInternalStoreMigrationPreparation(ProjectContext projectContext, MigrationContext migrationContext)
      Performs migration activities during the internal store migration preparation (before BM start, etc).
      Parameters:
      projectContext - The service project context for the project being migrated at the moment.
      migrationContext - The migration process context.
      Throws:
      org.eclipse.core.runtime.CoreException - Throws exception in case of fatal problems during migration.
    • doPreparation

      protected void doPreparation(ProjectContext projectContext, MigrationContext migrationContext)
      Performs migration activities during the migration process preparation. Could be used to set specific data into the migration context for inter-scenario data exchange.
      Parameters:
      projectContext - The service project context for the project being migrated at the moment.
      migrationContext - The migration process context.
      Throws:
      org.eclipse.core.runtime.CoreException - Throws exception in case of fatal problems during migration.
    • doResourceStoreMigration

      protected void doResourceStoreMigration(ProjectContext projectContext, MigrationContext migrationContext) throws org.eclipse.core.runtime.CoreException
      Performs migration activities during the main project resource store migration (e.g changing source files, etc).
      Parameters:
      projectContext - The service project context for the project being migrated at the moment.
      migrationContext - The migration process context.
      Throws:
      org.eclipse.core.runtime.CoreException - Throws exception in case of fatal problems during migration.
    • getProductVersionManager

      protected IProductVersionManager getProductVersionManager()
      Gets the EDT product version manager (IProductVersionManager).
      Returns:
      The product version manager instance.
    • getResourceStoreManager

      protected IResourceStoreManager getResourceStoreManager()
      Gets the EDT resource store manager (IResourceStoreManager).
      Returns:
      The resource store manager instance.