Examples of root()


Examples of bibliothek.gui.dock.station.split.DockableSplitDockTree.root()

    if( dockable.getDockParent() == station.getStation() )
      throw new IllegalStateException( "dockable already a child" );
   
    DockableSplitDockTree tree = getStation().createTree();
    if( tree.getRoot() == null )
      tree.root( dockable );
    else{
      tree.root( tree.horizontal( tree.put( dockable ), tree.unroot() ) );
    }
    getStation().dropTree( tree, false );
  }
View Full Code Here

Examples of bibliothek.gui.dock.station.split.DockableSplitDockTree.root()

   
    DockableSplitDockTree tree = getStation().createTree();
    if( tree.getRoot() == null )
      tree.root( dockable );
    else{
      tree.root( tree.horizontal( tree.put( dockable ), tree.unroot() ) );
    }
    getStation().dropTree( tree, false );
  }
 
  /**
 
View Full Code Here

Examples of com.google.common.jimfs.PathType.ParseResult.root()

  static void assertUriRoundTripsCorrectly(PathType type, String path) {
    ParseResult result = type.parsePath(path);
    URI uri = type.toUri(fileSystemUri, result.root(), result.names());
    ParseResult parsedUri = type.fromUri(uri);
    assertThat(parsedUri.root()).isEqualTo(result.root());
    assertThat(parsedUri.names()).containsExactlyElementsIn(result.names()).inOrder();
  }

  /**
   * Arbitrary path type with $ as the root, / as the separator and \ as an alternate separator.
View Full Code Here

Examples of com.google.common.jimfs.PathType.ParseResult.root()

  }

  @Test
  public void testToString() {
    ParseResult path = type.parsePath("foo/bar\\baz");
    assertThat(type.toString(path.root(), path.names())).isEqualTo("foo/bar/baz");

    ParseResult path2 = type.parsePath("$/foo/bar");
    assertThat(type.toString(path2.root(), path2.names())).isEqualTo("$foo/bar");
  }
View Full Code Here

Examples of com.google.common.jimfs.PathType.ParseResult.root()

  public void testToString() {
    ParseResult path = type.parsePath("foo/bar\\baz");
    assertThat(type.toString(path.root(), path.names())).isEqualTo("foo/bar/baz");

    ParseResult path2 = type.parsePath("$/foo/bar");
    assertThat(type.toString(path2.root(), path2.names())).isEqualTo("$foo/bar");
  }

  @Test
  public void testToUri() {
    URI fileUri = type.toUri(fileSystemUri, "$", ImmutableList.of("foo", "bar"));
View Full Code Here

Examples of com.google.common.jimfs.PathType.ParseResult.root()

    assertThat(result.names()).containsExactly((Object[]) names).inOrder();
  }

  static void assertUriRoundTripsCorrectly(PathType type, String path) {
    ParseResult result = type.parsePath(path);
    URI uri = type.toUri(fileSystemUri, result.root(), result.names());
    ParseResult parsedUri = type.fromUri(uri);
    assertThat(parsedUri.root()).isEqualTo(result.root());
    assertThat(parsedUri.names()).containsExactlyElementsIn(result.names()).inOrder();
  }
View Full Code Here

Examples of com.typesafe.config.Config.root()

    final Config config = root.getConfig("form-field-bundle");

    final Map<String, String> props = new HashMap<String, String>();

    final Set<String> keySet = config.root().keySet();

    for (final String configId : keySet) {

      final Config configField = config.getConfig(configId);
View Full Code Here

Examples of com.typesafe.config.Config.root()

      System.err.println("Usage: java -cp ... " + PrettyPrinter.class.getName() + " <morphlineConfigFile>");
      return;
    }
   
    Config config = ConfigFactory.parseFile(new File(args[0]));
    String str = config.root().render(
        ConfigRenderOptions.concise().setFormatted(true).setJson(false).setComments(true));

    System.out.println(str);
  }
 
View Full Code Here

Examples of com.typesafe.config.Config.root()

      System.err.println("Usage: java -cp ... " + PrettyPrinter.class.getName() + " <morphlineConfigFile>");
      return;
    }
   
    Config config = ConfigFactory.parseFile(new File(args[0]));
    String str = config.root().render(
        ConfigRenderOptions.concise().setFormatted(true).setJson(false).setComments(true));

    System.out.println(str);
  }
 
View Full Code Here

Examples of com.typesafe.config.Config.root()

                                               "failed to get a concrete, working class", ex);
        }
        Class vc = (Class) field.getGenericTypes()[1];
        boolean va = field.isMapValueArray();
        Config configMap = config.getConfig(field.getName());
        for (String key : configMap.root().keySet()) {
            if (field.isInterned()) {
                key = key.intern();
            }
            if (va) {
                map.put(key, hydrateArray(vc, key, configMap));
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.