Package org.waveprotocol.wave.model.document.util

Examples of org.waveprotocol.wave.model.document.util.RangeTracker


      // Force rendering of annotations
      // TODO(danilatos): Make this only apply to the current editor.
      AnnotationPainter.repaintNow(content.getContext());

      savedSelection = new RangeTracker(content.getLocalAnnotations(), "savedsel");
      passiveSelectionHelper.setSelectionTracker(savedSelection);

      // initialise the annotation behavioural logic:
      annotationLogic = new AnnotationBehaviourLogic<ContentNode>(
          ROOT_ANNOTATION_REGISTRY, content.getMutableDoc(), caretStyles);
View Full Code Here


   }

  private RangeTracker getOrCreateRangeTracker(
      DocumentContext<ContentNode, ContentElement, ContentTextNode> context) {
    ContentElement docElement = context.document().getDocumentElement();
    RangeTracker ret =
        docElement.getProperty(LINK_RANGE_TRACKER_PROP);

    if (ret == null) {
      ret = new RangeTracker(context.localAnnotations(), CURRENT_LINK_DEBUG_ID);
      docElement.setProperty(LINK_RANGE_TRACKER_PROP, ret);
    }
    return ret;
  }
View Full Code Here

      // Force rendering of annotations
      // TODO(danilatos): Make this only apply to the current editor.
      AnnotationPainter.repaintNow(content.getContext());

      savedSelection = new RangeTracker(content.getLocalAnnotations(), "savedsel");
      passiveSelectionHelper.setSelectionTracker(savedSelection);

      // initialise the annotation behavioural logic:
      annotationLogic = new AnnotationBehaviourLogic<ContentNode>(
          ROOT_ANNOTATION_REGISTRY, content.getMutableDoc(), caretStyles);
View Full Code Here

   }

  private RangeTracker getOrCreateRangeTracker(
      DocumentContext<ContentNode, ContentElement, ContentTextNode> context) {
    ContentElement docElement = context.document().getDocumentElement();
    RangeTracker ret =
        docElement.getProperty(LINK_RANGE_TRACKER_PROP);

    if (ret == null) {
      ret = new RangeTracker(context.localAnnotations(), CURRENT_LINK_DEBUG_ID);
      docElement.setProperty(LINK_RANGE_TRACKER_PROP, ret);
    }
    return ret;
  }
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.model.document.util.RangeTracker

Copyright © 2018 www.massapicom. 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.