1 19 20 package org.netbeans.modules.j2ee.persistence.unit; 21 22 import org.openide.loaders.DataNode; 23 import org.openide.nodes.Children; 24 import org.openide.nodes.Sheet; 25 26 public class PUDataNode extends DataNode { 27 28 private static final String IMAGE_ICON_BASE = "org/netbeans/modules/j2ee/persistence/unit/PersistenceIcon.gif"; 29 30 public PUDataNode(PUDataObject obj) { 31 super(obj, Children.LEAF); 32 setIconBaseWithExtension(IMAGE_ICON_BASE); 33 } 34 35 protected Sheet createSheet() { 37 Sheet s = super.createSheet(); 38 Sheet.Set ss = s.get(Sheet.PROPERTIES); 39 if (ss == null) { 40 ss = Sheet.createPropertiesSet(); 41 s.put(ss); 42 } 43 return s; 45 } 46 47 48 49 } 50 | Popular Tags |