Class FileSystemProjectSourceProvider
java.lang.Object
com._1c.g5.v8.dt.internal.compare.datasource.AbstractProjectSourceProvider
com._1c.g5.v8.dt.internal.compare.datasource.FileSystemProjectSourceProvider
- All Implemented Interfaces:
IProjectSourceProvider
,IExtendedProjectSourceProvider
Source provider for the file comparison source
-
Constructor Summary
ConstructorsConstructorDescriptionFileSystemProjectSourceProvider
(Path sourceRoot) Constructs the source provider.FileSystemProjectSourceProvider
(Path sourceRoot, String projectNature, String projectName, Version runtimeVersion) Constructs the source provider. -
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.int
hashCode()
void
stop()
Stops the project source provider in the flow of the comparison session closure.toString()
Methods inherited from class com._1c.g5.v8.dt.internal.compare.datasource.AbstractProjectSourceProvider
getProjectName, getProjectNature, getTargetRuntimeVersion
-
Constructor Details
-
FileSystemProjectSourceProvider
Constructs the source provider.- Parameters:
sourceRoot
- The root folder that contains project sources. May not benull
-
FileSystemProjectSourceProvider
public FileSystemProjectSourceProvider(Path sourceRoot, String projectNature, String projectName, Version runtimeVersion) Constructs the source provider. Used to create delta-sources without proper project information- Parameters:
sourceRoot
- The root folder that contains project sources, cannot benull
projectNature
- The project nature, cannot benull
projectName
- The project name, cannot benull
runtimeVersion
- the runtime version, cannot benull
-
-
Method Details
-
equals
-
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
-
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
-
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. -
hashCode
public int hashCode() -
toString
-