Lines 75-81
Link Here
|
75 |
boolean isPatchHunk(); |
75 |
boolean isPatchHunk(); |
76 |
|
76 |
|
77 |
boolean isShowPseudoConflicts(); |
77 |
boolean isShowPseudoConflicts(); |
78 |
|
78 |
|
|
|
79 |
boolean isPatchHunkOk(); |
79 |
} |
80 |
} |
80 |
|
81 |
|
81 |
public class Diff { |
82 |
public class Diff { |
Lines 402-414
Link Here
|
402 |
DocLineComparator sancestor= null; |
403 |
DocLineComparator sancestor= null; |
403 |
if (aDoc != null) { |
404 |
if (aDoc != null) { |
404 |
sancestor= new DocLineComparator(aDoc, toRegion(aRegion), ignoreWhiteSpace); |
405 |
sancestor= new DocLineComparator(aDoc, toRegion(aRegion), ignoreWhiteSpace); |
405 |
if (isPatchHunk()) { |
406 |
/*if (isPatchHunk()) { |
406 |
if (isHunkOnLeft()) { |
407 |
if (isHunkOnLeft()) { |
407 |
sright= new DocLineComparator(aDoc, toRegion(aRegion), ignoreWhiteSpace); |
408 |
sright= new DocLineComparator(aDoc, toRegion(aRegion), ignoreWhiteSpace); |
408 |
} else { |
409 |
} else { |
409 |
sleft= new DocLineComparator(aDoc, toRegion(aRegion), ignoreWhiteSpace); |
410 |
sleft= new DocLineComparator(aDoc, toRegion(aRegion), ignoreWhiteSpace); |
410 |
} |
411 |
} |
411 |
} |
412 |
}*/ |
412 |
} |
413 |
} |
413 |
|
414 |
|
414 |
final Object[] result= new Object[1]; |
415 |
final Object[] result= new Object[1]; |
Lines 463-477
Link Here
|
463 |
|
464 |
|
464 |
int rightStart= sright.getTokenStart(es.rightStart()); |
465 |
int rightStart= sright.getTokenStart(es.rightStart()); |
465 |
int rightEnd= getTokenEnd2(sright, es.rightStart(), es.rightLength()); |
466 |
int rightEnd= getTokenEnd2(sright, es.rightStart(), es.rightLength()); |
466 |
|
467 |
|
467 |
if (isPatchHunk()) { |
468 |
/*if (isPatchHunk()) { |
468 |
if (isHunkOnLeft()) { |
469 |
if (isHunkOnLeft()) { |
469 |
rightStart = rightEnd = getHunkStart(); |
470 |
rightStart = rightEnd = getHunkStart(); |
470 |
} else { |
471 |
} else { |
471 |
leftStart = leftEnd = getHunkStart(); |
472 |
leftStart = leftEnd = getHunkStart(); |
472 |
} |
473 |
} |
473 |
} |
474 |
}*/ |
474 |
|
475 |
|
475 |
Diff diff= new Diff(null, es.kind(), |
476 |
Diff diff= new Diff(null, es.kind(), |
476 |
aDoc, aRegion, ancestorStart, ancestorEnd, |
477 |
aDoc, aRegion, ancestorStart, ancestorEnd, |
477 |
lDoc, lRegion, leftStart, leftEnd, |
478 |
lDoc, lRegion, leftStart, leftEnd, |
Lines 609-621
Link Here
|
609 |
fChangeDiffs.add(diff); // here we remember only the real diffs |
610 |
fChangeDiffs.add(diff); // here we remember only the real diffs |
610 |
} |
611 |
} |
611 |
|
612 |
|
612 |
private boolean isHunkOnLeft() { |
613 |
/*private boolean isHunkOnLeft() { |
613 |
return fInput.isHunkOnLeft(); |
614 |
return fInput.isHunkOnLeft(); |
614 |
} |
615 |
} |
615 |
|
616 |
|
616 |
private int getHunkStart() { |
617 |
private int getHunkStart() { |
617 |
return fInput.getHunkStart(); |
618 |
return fInput.getHunkStart(); |
618 |
} |
619 |
}*/ |
619 |
|
620 |
|
620 |
private boolean isPatchHunk() { |
621 |
private boolean isPatchHunk() { |
621 |
return fInput.isPatchHunk(); |
622 |
return fInput.isPatchHunk(); |