Class LibrarySourceProvider
java.lang.Object
com._1c.g5.v8.dt.internal.compare.datasource.AbstractProjectSourceProvider
com._1c.g5.v8.dt.internal.compare.datasource.LibrarySourceProvider
- All Implemented Interfaces:
IProjectSourceProvider
,IExtendedProjectSourceProvider
A source provider for the library comparison data source.
-
Constructor Summary
ConstructorsConstructorDescriptionLibrarySourceProvider
(LibraryDescriptor libraryDescriptor) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
fileExists
(Path path) Checks whether a file for the specified path exists.getFileListRecursively
(Path path) Returns the file list for given folder path and all its subfolders.getFileStream
(Path path) Returns a file stream for the specified path.Gets the full import request.Returns project name for this data source.Gets the project nature that defines the DT project type.Returns the target runtime version for the project behind this source.int
hashCode()
void
stop()
Stops the project source provider in the flow of the comparison session closure.
-
Constructor Details
-
LibrarySourceProvider
Creates a new instance.- Parameters:
libraryDescriptor
- the library descriptor to create the source provider for, cannot benull
-
-
Method Details
-
getFullImportRequest
Description copied from interface:IExtendedProjectSourceProvider
Gets the full import request.- Returns:
- The definition of sources that should be imported during the full import request
-
fileExists
Description copied from interface:IProjectSourceProvider
Checks whether a file for the specified path exists.- Parameters:
path
- the specified path to check the existence for, cannot benull
- Returns:
true
if the file exists,false
otherwise
-
getFileListRecursively
Description copied from interface:IProjectSourceProvider
Returns the file list for given folder path and all its subfolders.- Parameters:
path
- the relative folder path to get the file list for, can not benull
- Returns:
- the list of relative file paths, never
null
-
getFileStream
Description copied from interface:IProjectSourceProvider
Returns a file stream for the specified path.- Parameters:
path
- the string with the path- Returns:
- the input stream
-
stop
public void stop()Description copied from interface:IProjectSourceProvider
Stops the project source provider in the flow of the comparison session closure. -
getProjectName
Description copied from interface:IExtendedProjectSourceProvider
Returns project name for this data source.- Specified by:
getProjectName
in interfaceIExtendedProjectSourceProvider
- Overrides:
getProjectName
in classAbstractProjectSourceProvider
- Returns:
- the project name, never
null
-
getProjectNature
Description copied from interface:IExtendedProjectSourceProvider
Gets the project nature that defines the DT project type.- Specified by:
getProjectNature
in interfaceIExtendedProjectSourceProvider
- Overrides:
getProjectNature
in classAbstractProjectSourceProvider
- Returns:
- The deciding project nature, never
null
-
getTargetRuntimeVersion
Description copied from interface:IExtendedProjectSourceProvider
Returns the target runtime version for the project behind this source.- Specified by:
getTargetRuntimeVersion
in interfaceIExtendedProjectSourceProvider
- Overrides:
getTargetRuntimeVersion
in classAbstractProjectSourceProvider
- Returns:
- the target runtime version, never
null
-
hashCode
public int hashCode() -
equals
-