Examples of SarosAnnotation


Examples of de.fu_berlin.inf.dpp.editor.annotations.SarosAnnotation

        for (Iterator<Annotation> it = model.getAnnotationIterator(); it
            .hasNext();) {
            Annotation annotation = it.next();

            if (annotation instanceof SarosAnnotation) {
                SarosAnnotation sarosAnnontation = (SarosAnnotation) annotation;
                if (predicate.evaluate(sarosAnnontation)) {
                    annotations.add(annotation);
                }
            }
        }
View Full Code Here

Examples of de.fu_berlin.inf.dpp.editor.annotations.SarosAnnotation

            if (!(annotation instanceof SelectionAnnotation)) {
                continue;
            }

            SarosAnnotation oldAnnotation = (SarosAnnotation) annotation;
            if (oldAnnotation.getSource().equals(source)) {
                // If model supports IAnnotationModelExtension we can
                // just update the existing annotation.
                if (newAnnotation != null
                    && model instanceof IAnnotationModelExtension) {
                    IAnnotationModelExtension extension = (IAnnotationModelExtension) model;
View Full Code Here

Examples of de.fu_berlin.inf.dpp.editor.annotations.SarosAnnotation

            if (start == -1)
                throw new BadLocationException("Start line -1");
            int end = document.getLineOffset(bottom);
            if (end == -1 || end < start)
                throw new BadLocationException("End line -1 or less than start");
            SarosAnnotation annotation = new ViewportAnnotation(source);
            Position position = new Position(start, end - start);
            model.addAnnotation(annotation, position);
        } catch (BadLocationException e) {
            log.warn("Internal Error:", e);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.