/*******************************************************************************
* Copyright (c) 2012-2017 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.editor.orion.client.jso;
import com.google.gwt.core.client.JavaScriptObject;
/**
* The 'Occurrence Object' for Orion occurrences
* See <a href="https://wiki.eclipse.org/Orion/Documentation/Developer_Guide/Plugging_into_the_editor#orion.edit.occurrences">Orion Occurrences</a>
*
* @author Xavier Coulon, Red Hat
*/
public class OrionOccurrenceOverlay extends JavaScriptObject{
protected OrionOccurrenceOverlay() {}
public static native OrionOccurrenceOverlay create() /*-{
return {};
}-*/;
/**
* @param offset The offset into the file for the start of the occurrence.
*/
public final native void setStart(int offset) /*-{
this.start = offset;
}-*/;
/**
* @param offset The offset into the file for the end of the occurrence.
*/
public final native void setEnd(int offset) /*-{
this.end = offset;
}-*/;
}