1 11 package org.eclipse.jface.text.projection; 12 13 14 import org.eclipse.jface.text.Position; 15 16 17 25 public class Segment extends Position { 26 27 28 public Fragment fragment; 29 30 public boolean isMarkedForStretch; 31 32 public boolean isMarkedForShift; 33 34 40 public Segment(int offset, int length) { 41 super(offset, length); 42 } 43 44 47 public void markForStretch() { 48 isMarkedForStretch= true; 49 } 50 51 55 public boolean isMarkedForStretch() { 56 return isMarkedForStretch; 57 } 58 59 62 public void markForShift() { 63 isMarkedForShift= true; 64 } 65 66 70 public boolean isMarkedForShift() { 71 return isMarkedForShift; 72 } 73 74 77 public void clearMark() { 78 isMarkedForStretch= false; 79 isMarkedForShift= false; 80 } 81 } 82 | Popular Tags |