Class OverlayComparisonDataSource
java.lang.Object
com._1c.g5.v8.dt.internal.compare.datasource.DtProjectDataSource
com._1c.g5.v8.dt.internal.compare.datasource.OverlayComparisonDataSource
- All Implemented Interfaces:
IComparisonDataSource
A comparison data source that is created based on some other source with addition of external sources as a data
replacemenet
-
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
ConstructorsConstructorDescriptionOverlayComparisonDataSource(IComparisonDataSource sourceComparisonDataSource, IExtendedProjectSourceProvider overlayProjectSourceProvider, IOverlayDeltaProvider otherSourceOverlayProvider, DataSourceType overlaySourceType, ISymbolicNameService symbolicNameService, IQualifiedNameFilePathConverter qualifiedNameFilePathConverter, org.eclipse.xtext.naming.IQualifiedNameConverter fqnConverter, IBmModelManager bmModelManager, IWorkspaceOrchestrator workspaceOrchestrator, IVirtualProjectResourceImportService resourceImportService, IDtProjectManager dtProjectManager, IDerivedDataManagerProvider derivedDataManagerProvider, ISystemIdleService systemIdleService, ILibraryRepository libraryRepository) Constructs a new data source.OverlayComparisonDataSource(IDtProject sourceProject, DataSourceType dataSourceType, IExtendedProjectSourceProvider overlayProjectSourceProvider, IOverlayDeltaProvider otherSourceOverlayProvider, DataSourceType overlaySourceType, ISymbolicNameService symbolicNameService, IQualifiedNameFilePathConverter qualifiedNameFilePathConverter, org.eclipse.xtext.naming.IQualifiedNameConverter fqnConverter, IBmModelManager bmModelManager, IWorkspaceOrchestrator workspaceOrchestrator, IVirtualProjectResourceImportService resourceImportService, IDtProjectManager dtProjectManager, IDerivedDataManagerProvider derivedDataManagerProvider, ISystemIdleService systemIdleService, ILibraryRepository libraryRepository) Constructs a new data source with IDtProject overlaying variantg -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns 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.Gets the source project.getType()Gets the type of the data source.inthashCode()booleanisOverlayOf(IComparisonDataSource comparisonDataSource) Checks if this data source overlays the provided source.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)voidsynchronize(org.eclipse.core.runtime.IProgressMonitor progressMonitor) Synchronizes the data source with external changes being made to this source.Methods inherited from class com._1c.g5.v8.dt.internal.compare.datasource.DtProjectDataSource
beginTransaction, fileExists, getBmModel, getCollectionSymlinks, getFileListRecursively, getFileStream, getObjectById, getPath, getProjectName, getProjectNature, getSourceProvider, getSymlink, getSymlink, getSymlinksOfTopObjects, getTargetRuntimeVersion, getTopLevelObject, getTopObjectIdByFqn, prepareTopObjectInfos, setBmModel, startIfNecessary, stop, topObjectExists, toString
-
Constructor Details
-
OverlayComparisonDataSource
public OverlayComparisonDataSource(IComparisonDataSource sourceComparisonDataSource, IExtendedProjectSourceProvider overlayProjectSourceProvider, IOverlayDeltaProvider otherSourceOverlayProvider, DataSourceType overlaySourceType, ISymbolicNameService symbolicNameService, IQualifiedNameFilePathConverter qualifiedNameFilePathConverter, org.eclipse.xtext.naming.IQualifiedNameConverter fqnConverter, IBmModelManager bmModelManager, IWorkspaceOrchestrator workspaceOrchestrator, IVirtualProjectResourceImportService resourceImportService, IDtProjectManager dtProjectManager, IDerivedDataManagerProvider derivedDataManagerProvider, ISystemIdleService systemIdleService, ILibraryRepository libraryRepository) Constructs a new data source.- Parameters:
sourceComparisonDataSource- the comparison source the overlay is built upon. May not benulloverlayProjectSourceProvider- the source provider for the overlay. May not benullotherSourceOverlayProvider- theIExtendedProjectSourceProviderabstraction of project sources file access. May not benulloverlaySourceType- The type of the overlay source. May not benullsymbolicNameService- TheISymbolicNameServicereference. May not benullqualifiedNameFilePathConverter- the qualified name file path provider. May not benullfqnConverter- TheIQualifiedNameConverterservice reference. May not benullbmModelManager- the BM model manager, can not benullworkspaceOrchestrator- the link to theIWorkspaceOrchestratorservice. May not benullresourceImportService- the link to theIVirtualProjectResourceImportServiceservice. May not benulldtProjectManager- theIDtProjectManagerreference, notnullderivedDataManagerProvider- the link to theIDerivedDataManagerProviderservice. May not benullsystemIdleService- the link to theISystemIdleServiceservice. May not benulllibraryRepository- the library repository. May not benull
-
OverlayComparisonDataSource
public OverlayComparisonDataSource(IDtProject sourceProject, DataSourceType dataSourceType, IExtendedProjectSourceProvider overlayProjectSourceProvider, IOverlayDeltaProvider otherSourceOverlayProvider, DataSourceType overlaySourceType, ISymbolicNameService symbolicNameService, IQualifiedNameFilePathConverter qualifiedNameFilePathConverter, org.eclipse.xtext.naming.IQualifiedNameConverter fqnConverter, IBmModelManager bmModelManager, IWorkspaceOrchestrator workspaceOrchestrator, IVirtualProjectResourceImportService resourceImportService, IDtProjectManager dtProjectManager, IDerivedDataManagerProvider derivedDataManagerProvider, ISystemIdleService systemIdleService, ILibraryRepository libraryRepository) Constructs a new data source with IDtProject overlaying variantg- Parameters:
sourceProject- the comparison source project. May not benulldataSourceType- the type of the source. May not benulloverlayProjectSourceProvider- the source provider for the overlay. May not benullotherSourceOverlayProvider- theIProjectSourceProviderabstraction of project sources file access. May not benulloverlaySourceType- The type of the overlay source. May not benullsymbolicNameService- TheISymbolicNameServicereference. May not benullqualifiedNameFilePathConverter- the qualified name file path provider. May not benullfqnConverter- TheIQualifiedNameConverterservice reference. May not benullbmModelManager- the BM model manager, can not benullworkspaceOrchestrator- the link to theIWorkspaceOrchestratorservice. May not benullresourceImportService- the link to theIVirtualProjectResourceImportServiceservice. May not benulldtProjectManager- theIDtProjectManagerreference, notnullderivedDataManagerProvider- the link to theIDerivedDataManagerProviderservice. May not benullsystemIdleService- the link to theISystemIdleServiceservice. May not benulllibraryRepository- the library repository. May not benull
-
-
Method Details
-
equals
- Overrides:
equalsin classDtProjectDataSource
-
hashCode
public int hashCode()- Overrides:
hashCodein classDtProjectDataSource
-
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
-
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
-
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
-
getType
Description copied from interface:IComparisonDataSourceGets the type of the data source.- Specified by:
getTypein interfaceIComparisonDataSource- Overrides:
getTypein classDtProjectDataSource- Returns:
- The type of the data source. May not be
null
-
isOverlayOf
Description copied from interface:IComparisonDataSourceChecks if this data source overlays the provided source. Used to syncrhonize the data in case of underlying data source data changes- Specified by:
isOverlayOfin interfaceIComparisonDataSource- Overrides:
isOverlayOfin classDtProjectDataSource- Returns:
-
synchronize
public void synchronize(org.eclipse.core.runtime.IProgressMonitor progressMonitor) Description copied from interface:IComparisonDataSourceSynchronizes the data source with external changes being made to this source. Until this method call the data source should store any change tasks without applying- Specified by:
synchronizein interfaceIComparisonDataSource- Overrides:
synchronizein classDtProjectDataSource- Parameters:
progressMonitor- Progress monitor of a update/synchronization sequence. May not benull
-
getSourceProject
Gets the source project.- Returns:
- the source project, may be
null.
-
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
-