Package com.e1c.g5.v8.dt.library.update
Interface ILibraryUpdater
-
public interface ILibraryUpdaterThe library updater for workspace dt projects. Allows to update a project library or plug a library to a project from scratch.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<Boolean>updateLibrary(IDtProject dtProject, LibraryDescriptor libraryDescriptor, MatchingStrategy matchingStrategy, boolean parseBslModuleStructure, String mergeSettingsFileName, Consumer<CompareMergeProcessBatch> mergeRunner)Updates the project library or plugs the library to the project via running comparison and merge.CompletableFuture<Boolean>updateLibrary(IDtProject dtProject, Path libraryPath, MatchingStrategy matchingStrategy, boolean parseBslModuleStructure, String mergeSettingsFileName, Consumer<CompareMergeProcessBatch> mergeRunner, org.eclipse.core.runtime.IProgressMonitor monitor)Updates the project library or plugs the library to the project via running comparison and merge
-
-
-
Method Detail
-
updateLibrary
CompletableFuture<Boolean> updateLibrary(IDtProject dtProject, LibraryDescriptor libraryDescriptor, MatchingStrategy matchingStrategy, boolean parseBslModuleStructure, String mergeSettingsFileName, Consumer<CompareMergeProcessBatch> mergeRunner) throws LibraryUpdateException
Updates the project library or plugs the library to the project via running comparison and merge.- Parameters:
dtProject- the workspace dt project to update/plug the library for/to, cannot benulllibraryDescriptor- the library descriptor to update/plug by, cannot benullmatchingStrategy- the matching strategy for comparison/merge process, cannot benullparseBslModuleStructure- tells whether to parse bsl module structure during comparison/merge processmergeSettingsFileName- the merge settings file name for comparison/merge process, may benullmergeRunner- starts the merge after the comparison is finished, cannot benull- Returns:
- a library update result, never
null;trueif the update was successfully fished,falseif the update was aborted - Throws:
LibraryUpdateException- if failed to update or plug the library
-
updateLibrary
CompletableFuture<Boolean> updateLibrary(IDtProject dtProject, Path libraryPath, MatchingStrategy matchingStrategy, boolean parseBslModuleStructure, String mergeSettingsFileName, Consumer<CompareMergeProcessBatch> mergeRunner, org.eclipse.core.runtime.IProgressMonitor monitor) throws LibraryUpdateException
Updates the project library or plugs the library to the project via running comparison and merge- Parameters:
dtProject- the workspace dt project to update/plug the library for/to, cannot benulllibraryPath- the library path to update/plug by, cannot benullmatchingStrategy- the matching strategy for comparison/merge process, cannot benullparseBslModuleStructure- tells whether to parse bsl module structure during comparison/merge processmergeSettingsFileName- the merge settings file name for comparison/merge process, may benullmergeRunner- starts the merge after the comparison is finished, cannot benullmonitor- the monitor to indicate the progress, may benull- Returns:
- a library update result, never
null;trueif the update was successfully fished,falseif the update was aborted - Throws:
LibraryUpdateException- if failed to update or plug the library
-
-