01: package testRename;
02:
03: import org.openide.loaders.DataNode;
04: import org.openide.nodes.Children;
05:
06: public class WhereUsedDataNode extends DataNode {
07:
08: private static final String IMAGE_ICON_BASE = "SET/PATH/TO/ICON/HERE";
09:
10: public WhereUsedDataNode(WhereUsedDataObject obj) {
11: super (obj, Children.LEAF);
12: // setIconBaseWithExtension(IMAGE_ICON_BASE);
13: }
14:
15: // /** Creates a property sheet. */
16: // protected Sheet createSheet() {
17: // Sheet s = super.createSheet();
18: // Sheet.Set ss = s.get(Sheet.PROPERTIES);
19: // if (ss == null) {
20: // ss = Sheet.createPropertiesSet();
21: // s.put(ss);
22: // }
23: // // TODO add some relevant properties: ss.put(...)
24: // return s;
25: // }
26:
27: }
|