1 11 12 package org.eclipse.jface.text.source; 13 14 15 import org.eclipse.jface.text.IDocument; 16 import org.eclipse.jface.text.IRegion; 17 import org.eclipse.jface.text.ITextOperationTarget; 18 import org.eclipse.jface.text.ITextViewer; 19 20 21 59 public interface ISourceViewer extends ITextViewer { 60 61 65 int CONTENTASSIST_PROPOSALS= ITextOperationTarget.STRIP_PREFIX + 1; 66 67 71 int CONTENTASSIST_CONTEXT_INFORMATION= ITextOperationTarget.STRIP_PREFIX + 2; 72 73 77 int FORMAT= ITextOperationTarget.STRIP_PREFIX + 3; 78 79 83 int INFORMATION= ITextOperationTarget.STRIP_PREFIX + 4; 84 85 88 89 94 int QUICK_ASSIST= ITextOperationTarget.STRIP_PREFIX + 10; 95 96 103 void configure(SourceViewerConfiguration configuration); 104 105 113 void setAnnotationHover(IAnnotationHover annotationHover); 114 115 127 void setDocument(IDocument document, IAnnotationModel annotationModel); 128 129 145 void setDocument(IDocument document, IAnnotationModel annotationModel, int modelRangeOffset, int modelRangeLength); 146 147 154 IAnnotationModel getAnnotationModel(); 155 156 162 void setRangeIndicator(Annotation rangeIndicator); 163 164 172 void setRangeIndication(int offset, int length, boolean moveCursor); 173 174 179 IRegion getRangeIndication(); 180 181 185 void removeRangeIndication(); 186 187 195 void showAnnotations(boolean show); 196 } 197 | Popular Tags |