Java Code Examples for org.openide.nodes.Node#toString()

The following examples show how to use org.openide.nodes.Node#toString() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may want to check out the right sidebar which shows the related API usage.
Example 1
public DbNode findDbNode(Node node) {
    Node[] stepChildren = node.getChildren().getNodes();
    for (int i = 0; i < stepChildren.length; i++) {
        if (stepChildren[i] instanceof DbNode) {
            return (DbNode) stepChildren[i];
    throw new NodeNotFoundException("DbNode child not found in " + node.toString());
Example 2
Source Project: netbeans   File:    License: Apache License 2.0 4 votes vote down vote up
public String id(Node obj) {
    return obj.toString();