1 19 package org.netbeans.modules.gsf; 20 21 import javax.swing.Action ; 22 import org.netbeans.modules.gsf.Language; 23 import org.openide.actions.OpenAction; 24 import org.openide.loaders.DataNode; 25 import org.openide.nodes.Children; 26 import org.openide.util.actions.SystemAction; 27 28 29 30 public class GsfDataNode extends DataNode { 31 32 public GsfDataNode(GsfDataObject basDataObject, Language language) { 33 super(basDataObject, Children.LEAF); 34 setIconBaseWithExtension(language.getIconBase()); 35 } 36 37 public Action getPreferredAction() { 38 return SystemAction.get(OpenAction.class); 39 } 40 } 41 | Popular Tags |