Package com._1c.g5.v8.dt.testing.compare
Class CompareWithTestPerformer
- java.lang.Object
- 
- com._1c.g5.v8.dt.compare.git.AbstractCompareWithPerformer
- 
- com._1c.g5.v8.dt.testing.compare.CompareWithTestPerformer
 
 
- 
 public class CompareWithTestPerformer extends AbstractCompareWithPerformer Performs compare\merge with descriptor generated byAbstractCompareWithPerformer
- 
- 
Constructor SummaryConstructors Constructor Description CompareWithTestPerformer(org.eclipse.jgit.lib.Repository repository, String revisionToCompareWith, MatchingStrategy matchingStrategy, boolean mergeObjectsContent, boolean parseBslModuleStructure, Collection<org.eclipse.core.resources.IProject> projects, Map<org.eclipse.core.resources.IProject,List<Path>> pathsToFilter, String mergeSettingsFileName, IQualifiedNameFilePathConverter filePathConverter, IV8ProjectManager v8ProjectManager, IComparisonManager comparisonManager, TestingWorkspace testingWorkspace)Creates a new instance with the given parameters.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ComparisonProcessHandlegetHandle()booleanisNothingToMerge()If there are nothing to merge.protected voidonNothingToCompare()The callback method if there no changes to compare.protected voidrunComparison(CompareMergeProcessBatch batch)Runs the comparison on the built compare/merge process batch.voidstartMergeAndWait()Starts merge and waits until it finish.- 
Methods inherited from class com._1c.g5.v8.dt.compare.git.AbstractCompareWithPerformergetBaseCommit, getCommitToCompareWith, getCompareMergeProcessBatch, getHeadCommit, getProjects, getRepository, getRevisionToCompareWith, perform
 
- 
 
- 
- 
- 
Constructor Detail- 
CompareWithTestPerformerpublic CompareWithTestPerformer(org.eclipse.jgit.lib.Repository repository, String revisionToCompareWith, MatchingStrategy matchingStrategy, boolean mergeObjectsContent, boolean parseBslModuleStructure, Collection<org.eclipse.core.resources.IProject> projects, Map<org.eclipse.core.resources.IProject,List<Path>> pathsToFilter, String mergeSettingsFileName, IQualifiedNameFilePathConverter filePathConverter, IV8ProjectManager v8ProjectManager, IComparisonManager comparisonManager, TestingWorkspace testingWorkspace)Creates a new instance with the given parameters.- Parameters:
- repository- the Git repository to run comparison on, cannot be- null
- revisionToCompareWith- the revision to compare with, may be commit hash, branch name or index revision- GitCompareUtils.INDEX, cannot be- null
- matchingStrategy- the matching strategy, cannot be- null
- mergeObjectsContent- tells whether only objects content is to be merged
- parseBslModuleStructure- tells whether to compare and merge a Bsl module with parsing module structure
- projects- the projects to run Git 'Compare With' command on, cannot be- null
- pathsToFilter- the map from a compared project to paths in the project limiting search for changes on the comparison, may be- null
- mergeSettingsFileName- the merge settings file name, may be- null
- filePathConverter- the qualified name file path converter, cannot be- null
- v8ProjectManager- the V8 project manager, cannot be- null
- comparisonManager- the comparison process manager, cannot be- null
- testingWorkspace- testing workspace, cannot be- null
 
 
- 
 - 
Method Detail- 
getHandlepublic ComparisonProcessHandle getHandle() 
 - 
isNothingToMergepublic boolean isNothingToMerge() If there are nothing to merge.- Returns:
- trueif there is nothing to merge,- falseotherwise
 
 - 
startMergeAndWaitpublic void startMergeAndWait() Starts merge and waits until it finish.
 - 
onNothingToCompareprotected void onNothingToCompare() Description copied from class:AbstractCompareWithPerformerThe callback method if there no changes to compare.- Specified by:
- onNothingToComparein class- AbstractCompareWithPerformer
 
 - 
runComparisonprotected void runComparison(CompareMergeProcessBatch batch) Description copied from class:AbstractCompareWithPerformerRuns the comparison on the built compare/merge process batch.- Specified by:
- runComparisonin class- AbstractCompareWithPerformer
- Parameters:
- batch- the compare/merge process batch, cannot be- null
 
 
- 
 
-