コード例 #1
0
  @CalledInAwt
  public TextMergeChange(
      @NotNull MergeLineFragment fragment, int index, @NotNull TextMergeViewer viewer) {
    super(fragment, viewer.getViewer().getEditors(), ComparisonPolicy.DEFAULT);
    myMergeViewer = viewer;
    myViewer = viewer.getViewer();

    myIndex = index;
    myFragment = fragment;
    myStartLine = myFragment.getStartLine(ThreeSide.BASE);
    myEndLine = myFragment.getEndLine(ThreeSide.BASE);

    installHighlighter();
  }
コード例 #2
0
 @Override
 public int getEndLine(@NotNull ThreeSide side) {
   if (side == ThreeSide.BASE) return getEndLine();
   return myFragment.getEndLine(side);
 }