Package com._1c.g5.v8.dt.compare.git
Class AbstractCompareCommitsPerformer
- java.lang.Object
- 
- com._1c.g5.v8.dt.compare.git.AbstractCompareCommitsPerformer
 
- 
 public abstract class AbstractCompareCommitsPerformer extends Object An abstract class that provides ability to compare two commits using the EDT comparison mechanism.
- 
- 
Field SummaryFields Modifier and Type Field Description protected IQualifiedNameFilePathConverterfilePathConverterthe qualified name file path converterprotected org.eclipse.jgit.revwalk.RevCommitmainCommitthe main side commitprotected MatchingStrategymatchingStrategythe matching strategyprotected org.eclipse.jgit.revwalk.RevCommitotherCommitthe other side commitprotected booleanparseBslModuleStructuretells whether to compare a Bsl module with parsing module structureprotected PathpathToFilterthe path limiting search for changes on comparisonprotected org.eclipse.jgit.lib.Repositoryrepositorythe Git repository
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedAbstractCompareCommitsPerformer(org.eclipse.jgit.lib.Repository repository, org.eclipse.jgit.revwalk.RevCommit mainCommit, org.eclipse.jgit.revwalk.RevCommit otherCommit, MatchingStrategy matchingStrategy, boolean parseBslModuleStructure, Path pathToFilter, IQualifiedNameFilePathConverter filePathConverter)Creates a new instance with the given parameters.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidonNothingToCompare()The callback method if there no changes to compare.voidperform(org.eclipse.core.runtime.IProgressMonitor monitor)Performs the 2-way comparison of the specified commits.protected abstract voidrunComparison(List<CompareMergeProcessDescriptor> descriptors)Runs the comparison on the builded descriptors.
 
- 
- 
- 
Field Detail- 
repositoryprotected final org.eclipse.jgit.lib.Repository repository the Git repository
 - 
mainCommitprotected final org.eclipse.jgit.revwalk.RevCommit mainCommit the main side commit
 - 
otherCommitprotected final org.eclipse.jgit.revwalk.RevCommit otherCommit the other side commit
 - 
matchingStrategyprotected final MatchingStrategy matchingStrategy the matching strategy
 - 
parseBslModuleStructureprotected final boolean parseBslModuleStructure tells whether to compare a Bsl module with parsing module structure
 - 
pathToFilterprotected final Path pathToFilter the path limiting search for changes on comparison
 - 
filePathConverterprotected final IQualifiedNameFilePathConverter filePathConverter the qualified name file path converter
 
- 
 - 
Constructor Detail- 
AbstractCompareCommitsPerformerprotected AbstractCompareCommitsPerformer(org.eclipse.jgit.lib.Repository repository, org.eclipse.jgit.revwalk.RevCommit mainCommit, org.eclipse.jgit.revwalk.RevCommit otherCommit, MatchingStrategy matchingStrategy, boolean parseBslModuleStructure, Path pathToFilter, IQualifiedNameFilePathConverter filePathConverter)Creates a new instance with the given parameters.- Parameters:
- repository- the Git repository to run comparison on, cannot be- null
- mainCommit- the main side commit to compare, cannot be- null
- otherCommit- the other side commit to compare, cannot be- null
- matchingStrategy- the matching strategy, cannot be- null
- parseBslModuleStructure- tells whether to compare and merge a Bsl module with parsing module structure
- pathToFilter- the absolute path in the Git repositorу limiting search for changes on comparison or- nullto search all changes
- filePathConverter- the qualified name file path converter, cannot be- null
 
 
- 
 - 
Method Detail- 
performpublic void perform(org.eclipse.core.runtime.IProgressMonitor monitor) throws IOExceptionPerforms the 2-way comparison of the specified commits.- Parameters:
- monitor- the progress monitor to indicate progress, may be- null
- Throws:
- IOException- if failed to read the Git repository
 
 - 
onNothingToCompareprotected abstract void onNothingToCompare() The callback method if there no changes to compare.
 - 
runComparisonprotected abstract void runComparison(List<CompareMergeProcessDescriptor> descriptors) Runs the comparison on the builded descriptors.- Parameters:
- descriptors- the compare/merge process descriptors, cannot be- null
 
 
- 
 
-