Package org.waveprotocol.wave.client.editor.content

Examples of org.waveprotocol.wave.client.editor.content.Registries


    return new Builder();
  }

  /** Creates a per-conversation registries bundle. */
  private ConversationRegistries extendFor(Conversation c) {
    Registries r = registries.createExtension();
    for (ConversationInstaller ci : cis) {
      ci.install(((WaveletBasedConversation) c).getWavelet(), c, r);
    }
    return new ConversationRegistries(r, ((WaveletBasedConversation) c).getWavelet(), c);
  }
View Full Code Here


      (gis = lazyCreate(gis)).add(g);
      return this;
    }

    public DocumentRegistries build() {
      Registries root = Editor.ROOT_REGISTRIES;
      for (GlobalInstaller gi : nonNull(gis)) {
        gi.install(root);
      }
      return new DocumentRegistries(root, nonNull(cis), nonNull(bis));
    }
View Full Code Here

    /**
     * Extends this conversation's registres for a blip. Per-blip doodads are
     * installed in the new registries.
     */
    private Registries extendFor(ConversationBlip b) {
      Registries r = registries.createExtension();
      for (BlipInstaller bi : bis) {
        bi.install(w, c, b, r);
      }
      return r;
    }
View Full Code Here

    /**
     * @return the registries for a blip, lazily creating one if none exists.
     */
    Registries getBlipRegistries(ConversationBlip b) {
      Registries rs = blipRegistries.get(b);
      if (rs == null) {
        rs = extendFor(b);
        blipRegistries.put(b, rs);
      }
      return rs;
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.client.editor.content.Registries

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.