All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.jface.text.source.TextInvocationContext Maven / Gradle / Ivy

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; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy