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 void
doFinish
(ProjectContext projectContext, MigrationContext migrationContext) Performs migration activities during the finishing stage of the migration.protected void
doInternalStoreMigration
(ProjectContext projectContext, MigrationContext migrationContext) Performs migration activities during the internal store migration (like internal BM stores, etc).protected void
doInternalStoreMigrationPreparation
(ProjectContext projectContext, MigrationContext migrationContext) Performs migration activities during the internal store migration preparation (before BM start, etc).protected void
doPreparation
(ProjectContext projectContext, MigrationContext migrationContext) Performs migration activities during the migration process preparation.protected void
doResourceStoreMigration
(ProjectContext projectContext, MigrationContext migrationContext) Performs migration activities during the main project resource store migration (e.g changing source files, etc).protected IProductVersionManager
Gets the EDT product version manager (IProductVersionManager
).protected IResourceStoreManager
Gets the EDT resource store manager (IResourceStoreManager
).void
migrateData
(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, wait
Methods 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:IProjectDataMigrationScenario
Migrates data of EDT project.- Specified by:
migrateData
in 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.
-