Class AbstractCompareWithPerformer

  • Direct Known Subclasses:
    CompareWithTestPerformer

    public abstract class AbstractCompareWithPerformer
    extends Object
    An abstract class that provides ability to run Git 'Compare With' command using the EDT comparison mechanism.
    • Field Detail

      • repository

        protected final org.eclipse.jgit.lib.Repository repository
        the Git repository
      • revisionToCompareWith

        protected final String revisionToCompareWith
        the revision to compare with
      • matchingStrategy

        protected final MatchingStrategy matchingStrategy
        the matching strategy
      • mergeObjectsContent

        protected final boolean mergeObjectsContent
        tells whether only objects content is to be merged
      • parseBslModuleStructure

        protected final boolean parseBslModuleStructure
        tells whether to compare a Bsl module with parsing module structure
      • project

        protected final org.eclipse.core.resources.IProject project
        the project to run 'Compare With' command on
      • pathToFilter

        protected final Path pathToFilter
        the path limiting search for changes on comparison
      • baseCommit

        protected org.eclipse.jgit.revwalk.RevCommit baseCommit
        Base commit.
      • commitToCompareWith

        protected org.eclipse.jgit.revwalk.RevCommit commitToCompareWith
        Commit to compare with.
      • headCommit

        protected org.eclipse.jgit.revwalk.RevCommit headCommit
        Head commit.
      • v8ProjectManager

        protected final IV8ProjectManager v8ProjectManager
        the V8 project manager
      • comparisonManager

        protected final IComparisonManager comparisonManager
        the comparison manager
    • Constructor Detail

      • AbstractCompareWithPerformer

        public AbstractCompareWithPerformer​(org.eclipse.jgit.lib.Repository repository,
                                            String revisionToCompareWith,
                                            MatchingStrategy matchingStrategy,
                                            boolean mergeObjectsContent,
                                            boolean parseBslModuleStructure,
                                            org.eclipse.core.resources.IProject project,
                                            Path pathToFilter,
                                            String mergeSettingsFileName,
                                            IQualifiedNameFilePathConverter filePathConverter,
                                            IV8ProjectManager v8ProjectManager,
                                            IComparisonManager comparisonManager)
        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
        project - the project to run Git 'Compare With' command on, cannot be null
        pathToFilter - the absolute path in the project limiting search for changes on comparison or null to search all changes
        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
        See Also:
        IComparisonProcessSettings
    • Method Detail

      • onNothingToCompare

        protected abstract void onNothingToCompare()
        The callback method if there no changes to compare.
      • runComparison

        protected abstract void runComparison​(CompareMergeProcessDescriptor descriptor)
        Runs the comparison on the builded descriptor.
        Parameters:
        descriptor - the compare/merge process descriptor, cannot be null