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
symbolicNameService
Fields 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 TypeMethodDescriptionboolean
Returns the distribution support information for this data source.Gets theIDtProject
instance 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.int
hashCode()
boolean
isOverlayOf
(IComparisonDataSource comparisonDataSource) Checks if this data source overlays the provided source.protected void
onStart
(org.eclipse.core.runtime.IProgressMonitor progressMonitor) Prepares the data of the source (like import, etc)protected void
onStop()
Clears all the data for the source (like internal model, etc)void
synchronize
(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 benull
overlayProjectSourceProvider
- the source provider for the overlay. May not benull
otherSourceOverlayProvider
- theIExtendedProjectSourceProvider
abstraction of project sources file access. May not benull
overlaySourceType
- The type of the overlay source. May not benull
symbolicNameService
- TheISymbolicNameService
reference. May not benull
qualifiedNameFilePathConverter
- the qualified name file path provider. May not benull
fqnConverter
- TheIQualifiedNameConverter
service reference. May not benull
bmModelManager
- the BM model manager, can not benull
workspaceOrchestrator
- the link to theIWorkspaceOrchestrator
service. May not benull
resourceImportService
- the link to theIVirtualProjectResourceImportService
service. May not benull
dtProjectManager
- theIDtProjectManager
reference, notnull
derivedDataManagerProvider
- the link to theIDerivedDataManagerProvider
service. May not benull
systemIdleService
- the link to theISystemIdleService
service. May not benull
libraryRepository
- 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 benull
dataSourceType
- the type of the source. May not benull
overlayProjectSourceProvider
- the source provider for the overlay. May not benull
otherSourceOverlayProvider
- theIProjectSourceProvider
abstraction of project sources file access. May not benull
overlaySourceType
- The type of the overlay source. May not benull
symbolicNameService
- TheISymbolicNameService
reference. May not benull
qualifiedNameFilePathConverter
- the qualified name file path provider. May not benull
fqnConverter
- TheIQualifiedNameConverter
service reference. May not benull
bmModelManager
- the BM model manager, can not benull
workspaceOrchestrator
- the link to theIWorkspaceOrchestrator
service. May not benull
resourceImportService
- the link to theIVirtualProjectResourceImportService
service. May not benull
dtProjectManager
- theIDtProjectManager
reference, notnull
derivedDataManagerProvider
- the link to theIDerivedDataManagerProvider
service. May not benull
systemIdleService
- the link to theISystemIdleService
service. May not benull
libraryRepository
- the library repository. May not benull
-
-
Method Details
-
equals
- Overrides:
equals
in classDtProjectDataSource
-
hashCode
public int hashCode()- Overrides:
hashCode
in classDtProjectDataSource
-
getDistributionDescription
Description copied from interface:IComparisonDataSource
Returns the distribution support information for this data source.- Specified by:
getDistributionDescription
in interfaceIComparisonDataSource
- Overrides:
getDistributionDescription
in classDtProjectDataSource
- Returns:
- the distribution support information or
null
if no information for this data source was specified
-
getDtProject
Description copied from interface:IComparisonDataSource
Gets theIDtProject
instance associated with this data source and related to the project being represented by this source- Specified by:
getDtProject
in interfaceIComparisonDataSource
- Overrides:
getDtProject
in classDtProjectDataSource
- Returns:
- The
IDtProject
instance. May not benull
-
getModelEditingSupport
Description copied from interface:IComparisonDataSource
Returns the model editing support provider for this data source.- Specified by:
getModelEditingSupport
in interfaceIComparisonDataSource
- Overrides:
getModelEditingSupport
in classDtProjectDataSource
- Returns:
- the model editing support provider or
null
if no provider for this data source was specified
-
getType
Description copied from interface:IComparisonDataSource
Gets the type of the data source.- Specified by:
getType
in interfaceIComparisonDataSource
- Overrides:
getType
in classDtProjectDataSource
- Returns:
- The type of the data source. May not be
null
-
isOverlayOf
Description copied from interface:IComparisonDataSource
Checks if this data source overlays the provided source. Used to syncrhonize the data in case of underlying data source data changes- Specified by:
isOverlayOf
in interfaceIComparisonDataSource
- Overrides:
isOverlayOf
in classDtProjectDataSource
- Returns:
-
synchronize
public void synchronize(org.eclipse.core.runtime.IProgressMonitor progressMonitor) Description copied from interface:IComparisonDataSource
Synchronizes 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:
synchronize
in interfaceIComparisonDataSource
- Overrides:
synchronize
in 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:DtProjectDataSource
Prepares the data of the source (like import, etc)- Overrides:
onStart
in classDtProjectDataSource
- Parameters:
progressMonitor
- The progress monitor to control the process. May not benull
-
onStop
protected void onStop()Description copied from class:DtProjectDataSource
Clears all the data for the source (like internal model, etc)- Overrides:
onStop
in classDtProjectDataSource
-