1 11 package org.eclipse.ui.internal.texteditor.quickdiff.compare.rangedifferencer; 12 13 16 class LinkedRangeDifference extends RangeDifference { 17 18 static final int INSERT= 0; 19 static final int DELETE= 1; 20 21 LinkedRangeDifference fNext; 22 23 26 LinkedRangeDifference() { 27 super(ERROR); 28 fNext= null; 29 } 30 31 37 LinkedRangeDifference(LinkedRangeDifference next, int operation) { 38 super(operation); 39 fNext= next; 40 } 41 42 47 LinkedRangeDifference getNext() { 48 return fNext; 49 } 50 51 56 boolean isDelete() { 57 return kind() == DELETE; 58 } 59 60 65 boolean isInsert() { 66 return kind() == INSERT; 67 } 68 69 74 void setNext(LinkedRangeDifference next) { 75 fNext= next; 76 } 77 } 78 | Popular Tags |