KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > ruby > rhtml > RhtmlDataNode


1 package org.netbeans.modules.ruby.rhtml;
2
3 import org.openide.loaders.DataNode;
4 import org.openide.nodes.Children;
5 import org.openide.util.Lookup;
6
7 public class RhtmlDataNode extends DataNode {
8     
9     private static final String JavaDoc IMAGE_ICON_BASE = "org/netbeans/modules/ruby/rhtml/rhtml16.gif";
10     
11     public RhtmlDataNode(RhtmlDataObject obj) {
12         super(obj, Children.LEAF);
13         setIconBaseWithExtension(IMAGE_ICON_BASE);
14     }
15     RhtmlDataNode(RhtmlDataObject obj, Lookup lookup) {
16         super(obj, Children.LEAF, lookup);
17         setIconBaseWithExtension(IMAGE_ICON_BASE);
18     }
19     
20     // /** Creates a property sheet. */
21
// protected Sheet createSheet() {
22
// Sheet s = super.createSheet();
23
// Sheet.Set ss = s.get(Sheet.PROPERTIES);
24
// if (ss == null) {
25
// ss = Sheet.createPropertiesSet();
26
// s.put(ss);
27
// }
28
// // TODO add some relevant properties: ss.put(...)
29
// return s;
30
// }
31

32 }
33
Popular Tags