Package com._1c.g5.v8.dt.migration
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoFinish(ProjectContext projectContext, MigrationContext migrationContext) Performs migration activities during the finishing stage of the migration.protected voiddoInternalStoreMigration(ProjectContext projectContext, MigrationContext migrationContext) Performs migration activities during the internal store migration (like internal BM stores, etc).protected voiddoInternalStoreMigrationPreparation(ProjectContext projectContext, MigrationContext migrationContext) Performs migration activities during the internal store migration preparation (before BM start, etc).protected voiddoPreparation(ProjectContext projectContext, MigrationContext migrationContext) Performs migration activities during the migration process preparation.protected voiddoResourceStoreMigration(ProjectContext projectContext, MigrationContext migrationContext) Performs migration activities during the main project resource store migration (e.g changing source files, etc).protected IProductVersionManagerGets the EDT product version manager (IProductVersionManager).protected IResourceStoreManagerGets the EDT resource store manager (IResourceStoreManager).voidmigrateData(org.eclipse.core.resources.IProject project, MigrationPhase migrationPhase, ProjectContext projectContext) Migrates data of EDT project.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com._1c.g5.v8.dt.migration.IProjectDataMigrationScenario
getName
-
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:IProjectDataMigrationScenarioMigrates data of EDT project.- Specified by:
migrateDatain interfaceIProjectDataMigrationScenario- 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
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
Gets the EDT product version manager (IProductVersionManager).- Returns:
- The product version manager instance.
-
getResourceStoreManager
Gets the EDT resource store manager (IResourceStoreManager).- Returns:
- The resource store manager instance.
-