@@ -0,0 +1,3047 @@
+/*******************************************************************************%0A * Copyright (c) 2014 Codenvy, S.A.%0A * All rights reserved. This program and the accompanying materials%0A * are made available under the terms of the Eclipse Public License v1.0%0A * which accompanies this distribution, and is available at%0A * http://www.eclipse.org/legal/epl-v10.html%0A *%0A * Contributors:%0A *   Codenvy, S.A. - initial API and implementation%0A *******************************************************************************/%0Apackage com.codenvy.ide.editor.orion.client.jso;%0A%0Aimport com.google.gwt.core.client.JavaScriptObject;%0A%0A/** Overlay on the orion JS Annotation model objects. */%0Apublic class OrionAnnotationModelOverlay extends JavaScriptObject %7B%0A%0A    /** JSO mandated protected constructor. */%0A    protected OrionAnnotationModelOverlay() %7B%0A    %7D%0A%0A    /**%0A     * Adds an annotation to the annotation model.%0A     * %0A     * @param annotation the annotation to add%0A     */%0A    public final native void addAnnotation(OrionAnnotationOverlay annotation) /*-%7B%0A        this.addAnnotation(annotation);%0A    %7D-*/;%0A%0A    /**%0A     * Removes an annotation from the annotation model.%0A     * %0A     * @param annotation the annotation to remove%0A     */%0A    public final native void removeAnnotation(OrionAnnotationOverlay annotation) /*-%7B%0A        this.removeAnnotation(annotation);%0A    %7D-*/;%0A%0A    /**%0A     * Removes all annotations of the given type.%0A     * %0A     * @param annotationType the type of annotations to remove%0A     */%0A    public final native void removeAnnotations(String annotationType) /*-%7B%0A        this.removeAnnotations(annotationType);%0A    %7D-*/;%0A%0A    /**%0A     * Removes all annotations.%0A     */%0A    public final native void removeAnnotations() /*-%7B%0A        this.removeAnnotations();%0A    %7D-*/;%0A%0A    /**%0A     * Notifies the annotation model that the given annotation has been modified.%0A     * %0A     * @param annotation the modified annotation%0A     */%0A    public final native void modifyAnnotation(OrionAnnotationOverlay annotation) /*-%7B%0A        this.modifyAnnotation(annotation);%0A    %7D-*/;%0A%0A    /**%0A     * Removes and adds the specifed annotations to the annotation model.%0A     * %0A     * @param removedAnnotation the annotation that is removed%0A     * @param addedAnnotation the annotation that is added%0A     */%0A    public final native void replaceAnnotation(OrionAnnotationOverlay removedAnnotation, OrionAnnotationOverlay addedAnnotation) /*-%7B%0A        this.replaceAnnotation(removedAnnotation, addedAnnotation);%0A    %7D-*/;%0A%0A    /**%0A     * Returns an iterator of annotations for the given range of text.%0A     * %0A     * @return annotations iterator%0A     */%0A    public final native OrionAnnotationIteratorOverlay getAnnotations(int startOffset, int endOffset) /*-%7B%0A        this.getAnnotations(startOffset, endOffset);%0A    %7D-*/;%0A%0A    /**%0A     * Returns an iterator of all annotations.%0A     * %0A     * @return annotations iterator%0A     */%0A    public final native OrionAnnotationIteratorOverlay getAnnotations() /*-%7B%0A        this.getAnnotations();%0A    %7D-*/;%0A%7D%0A

Add an annotation model overlay