/*
 * Copyright 2011 Splunk, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"): you may
 * not use this file except in compliance with the License. You may obtain
 * a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */

import com.splunk.Entity;

import org.openide.nodes.Children;

class EntityNode extends ExplorerNode {
    EntityNode(Entity entity) {
        super(entity);
        String name = entity.getName();
        setName(name);
        setDisplayName(name);
    }

    protected PropertyList getMetadata() {
        return new PropertyList() {{
            add(String.class, "getTitle");
        }};
    }
}


@@ -760,22 +760,23 @@
     
-String name = 
+setDisplayName(
 enti
@@ -791,60 +791,8 @@
 me()
-;%0A        setName(name);%0A        setDisplayName(name
 );%0A 
@@ -877,16 +877,58 @@
 st() %7B%7B%0A
+            add(String.class, %22getPath%22);%0A
         

Add path property to base entity node.