1 11 package org.eclipse.jface.text.source; 12 13 import org.eclipse.jface.text.quickassist.IQuickAssistInvocationContext; 14 15 16 24 public class TextInvocationContext implements IQuickAssistInvocationContext { 25 26 private ISourceViewer fSourceViewer; 27 private int fOffset; 28 private int fLength; 29 30 public TextInvocationContext(ISourceViewer sourceViewer, int offset, int length) { 31 fSourceViewer= sourceViewer; 32 fOffset= offset; 33 fLength= length; 34 } 35 36 39 public int getOffset() { 40 return fOffset; 41 } 42 43 46 public int getLength() { 47 return fLength; 48 } 49 50 53 public ISourceViewer getSourceViewer() { 54 return fSourceViewer; 55 } 56 57 } 58 | Popular Tags |