Examples of SkipListStringBag


Examples of com.google.collide.client.util.collections.SkipListStringBag

  public void gwtSetUp() throws Exception {
    super.gwtSetUp();
    path = new PathUtil("/test.none");
    helper = new MockAutocompleterEnvironment();

    SkipListStringBag localPrefixIndexStorage = new SkipListStringBag();
    LimitedContextFilePrefixIndex contextFilePrefixIndex = new LimitedContextFilePrefixIndex(
        10, localPrefixIndexStorage);
    autocompleter = new CodeGraphAutocompleter(SyntaxType.JS, new MockProposalBuilder(),
        helper.cubeClient, contextFilePrefixIndex, new ExplicitAutocompleter());
View Full Code Here

Examples of com.google.collide.client.util.collections.SkipListStringBag

  private final OnSelectCommand onSelectCommand = new OnSelectCommand();

  public static Autocompleter create(
      Editor editor, CubeClient cubeClient, final AutocompleteBox popup) {
    SkipListStringBag localPrefixIndexStorage = new SkipListStringBag();
    LimitedContextFilePrefixIndex limitedContextFilePrefixIndex = new LimitedContextFilePrefixIndex(
        LOCAL_PREFIX_INDEX_LIMIT, localPrefixIndexStorage);
    CssAutocompleter cssAutocompleter = CssAutocompleter.create();
    CodeGraphAutocompleter jsAutocompleter = JsAutocompleter.create(
        cubeClient, limitedContextFilePrefixIndex);
View Full Code Here

Examples of com.google.collide.client.util.collections.SkipListStringBag

    public final CodeGraphAutocompleter jsAutocompleter;
    public final CodeGraphAutocompleter pyAutocompleter;

    public static MockAutocompleter create(
        Editor editor, CubeClient cubeClient, AutocompleteBox popup) {
      SkipListStringBag localPrefixIndexStorage = new SkipListStringBag();
      LimitedContextFilePrefixIndex contextFilePrefixIndex = new LimitedContextFilePrefixIndex(
          10, localPrefixIndexStorage);

      CssAutocompleter cssAutocompleter = CssAutocompleter.create();
      CodeGraphAutocompleter jsAutocompleter = JsAutocompleter.create(
View Full Code Here

Examples of com.google.collide.client.util.collections.SkipListStringBag

  }

  private HtmlTagsAndAttributes() {
    selfClosedTags = JsonCollections.createStringSet(
        makeSelfClosedTagsArray().asIterable().iterator());
    tags = new SkipListStringBag();

    Jso jso = makeNestedAttributesMap();
    for (String tag : jso.getKeys().asIterable()) {
      tags.add(tag);

      SkipListStringBag attributesSet = new SkipListStringBag();
      flattenAttributes(jso.getArrayField(tag), attributesSet);
      attributes.put(tag, attributesSet);
    }
  }
View Full Code Here

Examples of com.google.collide.client.util.collections.SkipListStringBag

      String tag, StringMultiset alreadyPresentAttributes, String incomplete) {
    JsonArray<AutocompleteProposal> result = JsonCollections.createArray();
    tag = tag.toLowerCase();
    incomplete = incomplete.toLowerCase();

    SkipListStringBag tagAttributes = attributes.get(tag);

    if (tagAttributes == null) {
      return result;
    }

    for (String attribute : tagAttributes.search(incomplete)) {
      if (!attribute.startsWith(incomplete)) {
        break;
      }
      if (alreadyPresentAttributes.contains(attribute)) {
        continue;
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.