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
symbolicNameService
Fields 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 TypeMethodDescriptionvoid
Add data source listener.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.org.eclipse.core.resources.IProject
Gets the associated project.Returns the associated V8 project.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)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) 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, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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 benull
v8Project
- the V8 project, can not benull
sourceProvider
- theIExtendedProjectSourceProvider
abstraction of project sources file access. May not benull
bmModelManager
- the BM model manager, can not benull
symbolicNameService
- the symbolic name service, can not benull
qualifiedNameFilePathConverter
- the qualified name file path provider, can not benull
platformScopeProvider
- the reference to the platform scope provider, can not benull
modelEditingSupport
- the model editing support, can not benull
distributionDescriptionProvider
- the distribution description provider, can not benull
workspaceOrchestrator
- the link to theIWorkspaceOrchestrator
service. May not benull
resourceImportService
- the link to theIVirtualProjectResourceImportService
service. May not benull
derivedDataManagerProvider
- the link to theIDerivedDataManagerProvider
service. May not benull
libraryRepository
- the library repository. May not benull
-
-
Method Details
-
addDataSourceUpdateListener
Description copied from interface:IActiveComparisonDataSource
Add data source listener.- Specified by:
addDataSourceUpdateListener
in interfaceIActiveComparisonDataSource
- Parameters:
listener
- The listener to add.
-
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
-
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
-
getProject
public org.eclipse.core.resources.IProject getProject()Description copied from interface:IActiveComparisonDataSource
Gets the associated project.- Specified by:
getProject
in interfaceIActiveComparisonDataSource
- Returns:
- the associated project, never be
null
-
getV8Project
Description copied from interface:IActiveComparisonDataSource
Returns the associated V8 project.- Specified by:
getV8Project
in 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:IActiveComparisonDataSource
Returns a URI of the object represented by the specified symbolic link within the specified context object and reference.- Specified by:
translateSymlinkToURI
in interfaceIActiveComparisonDataSource
- Parameters:
symlink
- the source symbolic link, can not benull
reference
- the reference, can not benull
topObjectSymlink
- the symbolic link of the top object containing theEObject
, can not benull
eClass
- the class of referenced object, can not benull
- Returns:
- a URI or
null
-
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
-
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
-