1 19 20 package org.netbeans.modules.db.sql.loader; 21 22 import javax.swing.Action ; 23 import org.openide.actions.OpenAction; 24 import org.openide.loaders.DataNode; 25 import org.openide.nodes.Children; 26 import org.openide.nodes.Node; 27 import org.openide.util.actions.SystemAction; 28 29 33 public class SQLNode extends DataNode { 34 35 private final static String ICON_BASE = "org/netbeans/modules/db/sql/loader/resources/sql16.png"; 37 public SQLNode(SQLDataObject dataObject) { 38 super(dataObject, Children.LEAF); 39 setIconBaseWithExtension(ICON_BASE); 40 } 41 42 public Action getPreferredAction() { 43 return SystemAction.get(OpenAction.class); 44 } 45 } 46 | Popular Tags |