/******************************************************************************* * 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 OrionOccurrenceContextOverlay extends JavaScriptObject{ protected OrionOccurrenceContextOverlay() {} public final native String getContentType() /*-{ return this.contentType; }-*/; /** * @return The offset into the file for the start of the occurrence. */ public final native int getStart() /*-{ return this.selection.start; }-*/; /** * @return The offset into the file for the end of the occurrence. */ public final native int getEnd() /*-{ return this.selection.end; }-*/; }