1 11 package org.eclipse.jface.internal.text.source; 12 13 import org.eclipse.jface.text.quickassist.IQuickAssistInvocationContext; 14 import org.eclipse.jface.text.source.ISourceViewer; 15 16 17 22 public final class TextInvocationContext implements IQuickAssistInvocationContext { 23 24 private ISourceViewer fSourceViewer; 25 private int fOffset; 26 private int fLength; 27 28 public TextInvocationContext(ISourceViewer sourceViewer, int offset, int length) { 29 fSourceViewer= sourceViewer; 30 fOffset= offset; 31 fLength= length; 32 } 33 34 37 public int getOffset() { 38 return fOffset; 39 } 40 41 44 public int getLength() { 45 return fLength; 46 } 47 48 51 public ISourceViewer getSourceViewer() { 52 return fSourceViewer; 53 } 54 55 } 56 | Popular Tags |