Class ActiveDtProjectDataSource
java.lang.Object
com._1c.g5.v8.dt.internal.compare.datasource.DtProjectDataSource
com._1c.g5.v8.dt.internal.compare.datasource.ActiveDtProjectDataSource
- All Implemented Interfaces:
IActiveComparisonDataSource,IComparisonDataSource
public class ActiveDtProjectDataSource
extends DtProjectDataSource
implements IActiveComparisonDataSource
Comparison data source for active DT projects
-
Field Summary
Fields inherited from class com._1c.g5.v8.dt.internal.compare.datasource.DtProjectDataSource
symbolicNameServiceFields inherited from interface com._1c.g5.v8.dt.compare.datasource.IComparisonDataSource
PROJECT_FILE, PROJECT_SOURCE_FOLDER -
Constructor Summary
ConstructorsConstructorDescriptionActiveDtProjectDataSource(DataSourceType dataSourceType, IV8Project v8Project, IExtendedProjectSourceProvider sourceProvider, IBmModelManager bmModelManager, ISymbolicNameService symbolicNameService, IQualifiedNameFilePathConverter qualifiedNameFilePathConverter, IPlatformScopeProvider platformScopeProvider, IModelEditingSupport modelEditingSupport, IDistributionDescriptionProvider distributionDescriptionProvider, IWorkspaceOrchestrator workspaceOrchestrator, IVirtualProjectResourceImportService resourceImportService, IDerivedDataManagerProvider derivedDataManagerProvider, ILibraryRepository libraryRepository) Constructs a new data source for the specified V8 configuration project. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd data source listener.Returns the distribution support information for this data source.Gets theIDtProjectinstance associated with this data source and related to the project being represented by this sourceReturns the model editing support provider for this data source.org.eclipse.core.resources.IProjectGets the associated project.Returns the associated V8 project.protected voidonStart(org.eclipse.core.runtime.IProgressMonitor progressMonitor) Prepares the data of the source (like import, etc)protected voidonStop()Clears all the data for the source (like internal model, etc)org.eclipse.emf.common.util.URItranslateSymlinkToURI(String symlink, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference reference, String topObjectSymlink, org.eclipse.emf.ecore.EClass eClass) Returns a URI of the object represented by the specified symbolic link within the specified context object and reference.Methods inherited from class com._1c.g5.v8.dt.internal.compare.datasource.DtProjectDataSource
beginTransaction, equals, fileExists, getBmModel, getCollectionSymlinks, getFileListRecursively, getFileStream, getObjectById, getPath, getProjectName, getProjectNature, getSourceProvider, getSymlink, getSymlink, getSymlinksOfTopObjects, getTargetRuntimeVersion, getTopLevelObject, getTopObjectIdByFqn, getType, hashCode, isOverlayOf, prepareTopObjectInfos, setBmModel, startIfNecessary, stop, synchronize, topObjectExists, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com._1c.g5.v8.dt.compare.datasource.IComparisonDataSource
beginTransaction, fileExists, getBmModel, getCollectionSymlinks, getFileListRecursively, getFileStream, getObjectById, getPath, getProjectName, getProjectNature, getSymlink, getSymlink, getSymlinksOfTopObjects, getTargetRuntimeVersion, getTopLevelObject, getTopObjectIdByFqn, getType, isOverlayOf, prepareTopObjectInfos, startIfNecessary, stop, synchronize, topObjectExists
-
Constructor Details
-
ActiveDtProjectDataSource
public ActiveDtProjectDataSource(DataSourceType dataSourceType, IV8Project v8Project, IExtendedProjectSourceProvider sourceProvider, IBmModelManager bmModelManager, ISymbolicNameService symbolicNameService, IQualifiedNameFilePathConverter qualifiedNameFilePathConverter, IPlatformScopeProvider platformScopeProvider, IModelEditingSupport modelEditingSupport, IDistributionDescriptionProvider distributionDescriptionProvider, IWorkspaceOrchestrator workspaceOrchestrator, IVirtualProjectResourceImportService resourceImportService, IDerivedDataManagerProvider derivedDataManagerProvider, ILibraryRepository libraryRepository) Constructs a new data source for the specified V8 configuration project.- Parameters:
dataSourceType- the type of the data source according to the description. May not benullv8Project- the V8 project, can not benullsourceProvider- theIExtendedProjectSourceProviderabstraction of project sources file access. May not benullbmModelManager- the BM model manager, can not benullsymbolicNameService- the symbolic name service, can not benullqualifiedNameFilePathConverter- the qualified name file path provider, can not benullplatformScopeProvider- the reference to the platform scope provider, can not benullmodelEditingSupport- the model editing support, can not benulldistributionDescriptionProvider- the distribution description provider, can not benullworkspaceOrchestrator- the link to theIWorkspaceOrchestratorservice. May not benullresourceImportService- the link to theIVirtualProjectResourceImportServiceservice. May not benullderivedDataManagerProvider- the link to theIDerivedDataManagerProviderservice. May not benulllibraryRepository- the library repository. May not benull
-
-
Method Details
-
addDataSourceUpdateListener
Description copied from interface:IActiveComparisonDataSourceAdd data source listener.- Specified by:
addDataSourceUpdateListenerin interfaceIActiveComparisonDataSource- Parameters:
listener- The listener to add.
-
getDistributionDescription
Description copied from interface:IComparisonDataSourceReturns the distribution support information for this data source.- Specified by:
getDistributionDescriptionin interfaceIComparisonDataSource- Overrides:
getDistributionDescriptionin classDtProjectDataSource- Returns:
- the distribution support information or
nullif no information for this data source was specified
-
getModelEditingSupport
Description copied from interface:IComparisonDataSourceReturns the model editing support provider for this data source.- Specified by:
getModelEditingSupportin interfaceIComparisonDataSource- Overrides:
getModelEditingSupportin classDtProjectDataSource- Returns:
- the model editing support provider or
nullif no provider for this data source was specified
-
getProject
public org.eclipse.core.resources.IProject getProject()Description copied from interface:IActiveComparisonDataSourceGets the associated project.- Specified by:
getProjectin interfaceIActiveComparisonDataSource- Returns:
- the associated project, never be
null
-
getV8Project
Description copied from interface:IActiveComparisonDataSourceReturns the associated V8 project.- Specified by:
getV8Projectin interfaceIActiveComparisonDataSource- Returns:
- the associated V8 project, never
null
-
translateSymlinkToURI
public org.eclipse.emf.common.util.URI translateSymlinkToURI(String symlink, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference reference, String topObjectSymlink, org.eclipse.emf.ecore.EClass eClass) Description copied from interface:IActiveComparisonDataSourceReturns a URI of the object represented by the specified symbolic link within the specified context object and reference.- Specified by:
translateSymlinkToURIin interfaceIActiveComparisonDataSource- Parameters:
symlink- the source symbolic link, can not benullreference- the reference, can not benulltopObjectSymlink- the symbolic link of the top object containing theEObject, can not benulleClass- the class of referenced object, can not benull- Returns:
- a URI or
null
-
getDtProject
Description copied from interface:IComparisonDataSourceGets theIDtProjectinstance associated with this data source and related to the project being represented by this source- Specified by:
getDtProjectin interfaceIComparisonDataSource- Overrides:
getDtProjectin classDtProjectDataSource- Returns:
- The
IDtProjectinstance. May not benull
-
onStart
protected void onStart(org.eclipse.core.runtime.IProgressMonitor progressMonitor) Description copied from class:DtProjectDataSourcePrepares the data of the source (like import, etc)- Overrides:
onStartin classDtProjectDataSource- Parameters:
progressMonitor- The progress monitor to control the process. May not benull
-
onStop
protected void onStop()Description copied from class:DtProjectDataSourceClears all the data for the source (like internal model, etc)- Overrides:
onStopin classDtProjectDataSource
-