/*******************************************************************************
* Copyright (c) 2012-2015 Codenvy, S.A.
* 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:
* Codenvy, S.A. - initial API and implementation
*******************************************************************************/
package org.eclipse.che.ide.ext.java.jdt.quickassist.api;
/**
* Text quick assist invocation context.
*
* @author <a href="mailto:evidolob@exoplatform.com">Evgen Vidolob</a>
* @version $Id:
*/
public class TextInvocationContext implements QuickAssistInvocationContext {
private int offset;
private int length;
/**
* @param offset
* @param length
*/
public TextInvocationContext(int offset, int length) {
super();
this.offset = offset;
this.length = length;
}
/** {@inheritDoc} */
@Override
public int getOffset() {
return offset;
}
/** {@inheritDoc} */
@Override
public int getLength() {
return length;
}
}