org.eclipse.jface.text.source.TextInvocationContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.eclipse.jface.text Show documentation
Show all versions of org.eclipse.jface.text Show documentation
This is org.eclipse.jface.text jar used by Scout SDK
The newest version!
/*******************************************************************************
* Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jface.text.source;
import org.eclipse.jface.text.quickassist.IQuickAssistInvocationContext;
/**
* Text quick assist invocation context.
*
* Clients may extend this class to add additional context information.
*
*
* @since 3.3
*/
public class TextInvocationContext implements IQuickAssistInvocationContext {
private ISourceViewer fSourceViewer;
private int fOffset;
private int fLength;
public TextInvocationContext(ISourceViewer sourceViewer, int offset, int length) {
fSourceViewer= sourceViewer;
fOffset= offset;
fLength= length;
}
@Override
public int getOffset() {
return fOffset;
}
@Override
public int getLength() {
return fLength;
}
@Override
public ISourceViewer getSourceViewer() {
return fSourceViewer;
}
}