Package org.waveprotocol.wave.model.document.operation

Examples of org.waveprotocol.wave.model.document.operation.AnnotationBoundaryMap


  public void testAnnotationBoundary() {
    DocOpBuilder m = new DocOpBuilder();

    Attributes a = new AttributesImpl(ImmutableMap.of("a1", "1", "a2", "2"));
    AnnotationBoundaryMap mapA = new AnnotationBoundaryMapImpl(
        new String[]{},new String[]{"a"},new String[]{null},new String[]{"b"});
    AnnotationBoundaryMap mapB = new AnnotationBoundaryMapImpl(
        new String[]{},new String[]{"a"},new String[]{"b"},new String[]{null});
    AnnotationBoundaryMap mapC = new AnnotationBoundaryMapImpl(
        new String[]{"a"},new String[]{},new String[]{},new String[]{});
    m.elementStart("a", a);
    m.annotationBoundary(mapA);
    m.characters("test");
    m.annotationBoundary(mapB);
View Full Code Here


          changes.add(new AnnotationChange(key, values.oldValue, values.newValue));
        }
      }
    }
    if (!changes.isEmpty() || !ends.isEmpty()) {
      target.annotationBoundary(new AnnotationBoundaryMap() {

        @Override
        public int changeSize() {
          return changes.size();
        }
View Full Code Here

  @Override
  public void annotationBoundary(final AnnotationBoundaryMap map) {
    // Warning: Performing multiple reversals can cause multiple wrappers to be created.
    // TODO: Maybe we should change this so that this issue doesn't occur.
    target.annotationBoundary(new AnnotationBoundaryMap() {

      @Override
      public int changeSize() {
        return map.changeSize();
      }
View Full Code Here

  @Override
  public void annotationBoundary(final AnnotationBoundaryMap map) {
    // Warning: Performing multiple reversals can cause multiple wrappers to be created.
    // TODO: Maybe we should change this so that this issue doesn't occur.
    target.annotationBoundary(new AnnotationBoundaryMap() {

      @Override
      public int changeSize() {
        return map.changeSize();
      }
View Full Code Here

          changes.add(new AnnotationChange(key, values.oldValue, values.newValue));
        }
      }
    }
    if (!changes.isEmpty() || !ends.isEmpty()) {
      target.annotationBoundary(new AnnotationBoundaryMap() {

        @Override
        public int changeSize() {
          return changes.size();
        }
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.model.document.operation.AnnotationBoundaryMap

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.