Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-team-dev] Comparing files programmatically

OK, I've found the solution:
   IRangeComparator left = new TokenComparator(...);
   IRangeComparator right = new TokenComparator(...);
   RangeDifference[] diffs = RangeDifferencer.findRanges(left, right);

2011/3/25 Andrey Razumovsky <razumovsky.andrey@xxxxxxxxx>:
> Hi,
>
> Is this the right group to post about org.eclipse.compare?
>
> My question is: how can I run a compare diff on two files
> programmatically, without visual editor? I can't find that in Compare
> public API. In the end, I need to answer a question "where has
> specified line moved in new version of file", Any insight would be
> appreciated.
>
> Thanks,
>
> --
> Andrey
>



-- 
Andrey


Back to the top