Class LookupRangesDiff

    • Constructor Detail

      • LookupRangesDiff

        public LookupRangesDiff()
    • Method Detail

      • getMatchesWithCorrectedRanges

        public java.util.Optional<java.util.List<? extends AbstractMatch>> getMatchesWithCorrectedRanges​(java.lang.String checkedText,
                                                                                                         java.lang.String changedText,
                                                                                                         java.util.List<? extends AbstractMatch> abstractMatches)
        Description copied from class: LookupRanges
        Abstract method used to get the current location of matches. As the location within the current document might have changed since the last check.
        Specified by:
        getMatchesWithCorrectedRanges in class LookupRanges
        Parameters:
        checkedText - The current text as it was when a check was performed on it.
        changedText - The current text within the editor.
        abstractMatches - The matches as given for the checked text.
        Returns:
        An Optional with a list with the corrected ranges will be returned. In case the text within these ranges is not present anymore an empty Optional will be returned.
      • getMatchesIncludingCorrectedExternalMatches

        public java.util.List<? extends AbstractMatch> getMatchesIncludingCorrectedExternalMatches​(ExternalContent checkedExternalContent,
                                                                                                   ExternalContent changedExternalContent,
                                                                                                   java.util.List<? extends AbstractMatch> abstractMatches)
      • getOffSetDiffStart

        public static java.util.Optional<java.lang.Integer> getOffSetDiffStart​(java.lang.String originalVersion,
                                                                               java.lang.String changedVersion,
                                                                               int offsetInOriginalVersion)
      • getOffSetDiffEnd

        public static java.util.Optional<java.lang.Integer> getOffSetDiffEnd​(java.lang.String originalVersion,
                                                                             java.lang.String changedVersion,
                                                                             int offsetInOrignalVersion)