Class LibraryUpdater
java.lang.Object
com.e1c.g5.v8.dt.internal.library.update.LibraryUpdater
- All Implemented Interfaces:
ILibraryUpdater
The default implementation of
ILibraryUpdater
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionupdateLibrary
(IDtProject dtProject, LibraryDescriptor libraryDescriptor, MatchingStrategy matchingStrategy, boolean parseBslModuleStructure, String mergeSettingsFileName, boolean updateExisting) Updates the project library or plugs the library to the project via running comparison and merge.updateLibrary
(IDtProject dtProject, LibraryDescriptor libraryDescriptor, MatchingStrategy matchingStrategy, boolean parseBslModuleStructure, String mergeSettingsFileName, Consumer<CompareMergeProcessBatch> mergeRunner, boolean updateExisting) Updates the project library or plugs the library to the project via running comparison and merge.updateLibrary
(IDtProject dtProject, Path libraryPath, MatchingStrategy matchingStrategy, boolean parseBslModuleStructure, String mergeSettingsFileName, Consumer<CompareMergeProcessBatch> mergeRunner, org.eclipse.core.runtime.IProgressMonitor monitor, boolean updateExisting) Updates the project library or plugs the library to the project via running comparison and merge
-
Constructor Details
-
LibraryUpdater
public LibraryUpdater()
-
-
Method Details
-
updateLibrary
public CompletableFuture<LibraryCompareMergeResult> updateLibrary(IDtProject dtProject, LibraryDescriptor libraryDescriptor, MatchingStrategy matchingStrategy, boolean parseBslModuleStructure, String mergeSettingsFileName, Consumer<CompareMergeProcessBatch> mergeRunner, boolean updateExisting) throws LibraryUpdateException Description copied from interface:ILibraryUpdater
Updates the project library or plugs the library to the project via running comparison and merge.- Specified by:
updateLibrary
in interfaceILibraryUpdater
- Parameters:
dtProject
- the workspace dt project to update/plug the library for/to, cannot benull
libraryDescriptor
- the library descriptor to update/plug by, cannot benull
matchingStrategy
- the matching strategy for comparison/merge process, cannot benull
parseBslModuleStructure
- tells whether to parse bsl module structure during comparison/merge processmergeSettingsFileName
- the merge settings file name for comparison/merge process, may benull
mergeRunner
- starts the merge after the comparison is finished, cannot benull
updateExisting
- Update existing library (either up or down to the provided version) or plug a provided library as a new one- Returns:
- a library update result, never
null
- Throws:
LibraryUpdateException
- if failed to update or plug the library
-
updateLibrary
public CompletableFuture<LibraryCompareMergeResult> updateLibrary(IDtProject dtProject, LibraryDescriptor libraryDescriptor, MatchingStrategy matchingStrategy, boolean parseBslModuleStructure, String mergeSettingsFileName, boolean updateExisting) throws LibraryUpdateException Description copied from interface:ILibraryUpdater
Updates the project library or plugs the library to the project via running comparison and merge. The merge is being started automatically in case of comparison is performed sucessfully and no conflicts are found- Specified by:
updateLibrary
in interfaceILibraryUpdater
- Parameters:
dtProject
- the workspace dt project to update/plug the library for/to, cannot benull
libraryDescriptor
- the library descriptor to update/plug by, cannot benull
matchingStrategy
- the matching strategy for comparison/merge process, cannot benull
parseBslModuleStructure
- tells whether to parse bsl module structure during comparison/merge processmergeSettingsFileName
- the merge settings file name for comparison/merge process, may benull
updateExisting
- Update existing library (either up or down to the provided version) or plug a provided library as a new one- Returns:
- a library update result, never
null
- Throws:
LibraryUpdateException
- if failed to update or plug the library
-
updateLibrary
public CompletableFuture<LibraryCompareMergeResult> updateLibrary(IDtProject dtProject, Path libraryPath, MatchingStrategy matchingStrategy, boolean parseBslModuleStructure, String mergeSettingsFileName, Consumer<CompareMergeProcessBatch> mergeRunner, org.eclipse.core.runtime.IProgressMonitor monitor, boolean updateExisting) throws LibraryUpdateException Description copied from interface:ILibraryUpdater
Updates the project library or plugs the library to the project via running comparison and merge- Specified by:
updateLibrary
in interfaceILibraryUpdater
- Parameters:
dtProject
- the workspace dt project to update/plug the library for/to, cannot benull
libraryPath
- the library path to update/plug by, cannot benull
matchingStrategy
- the matching strategy for comparison/merge process, cannot benull
parseBslModuleStructure
- tells whether to parse bsl module structure during comparison/merge processmergeSettingsFileName
- the merge settings file name for comparison/merge process, may benull
mergeRunner
- starts the merge after the comparison is finished, cannot benull
monitor
- the monitor to indicate the progress, may benull
updateExisting
- Update existing library (either up or down to the provided version) or plug a provided library as a new one- Returns:
- a library update result, never
null
- Throws:
LibraryUpdateException
- if failed to update or plug the library
-