1 19 package org.netbeans.modules.websvc.dev.wizard.nodes; 20 21 import java.awt.Image ; 22 import org.netbeans.modules.websvc.api.jaxws.wsdlmodel.WsdlModel; 23 import org.openide.nodes.AbstractNode; 24 import org.openide.util.HelpCtx; 25 import org.openide.util.Utilities; 26 27 31 public class WsdlNode extends AbstractNode { 32 WsdlModel model; 33 34 public WsdlNode(WsdlModel model) { 35 super(new WsdlNodeChildren(model)); 36 this.model=model; 37 setName("WSDL model"); 38 setDisplayName("WSDL model"); 39 } 40 41 public Image getIcon(int type){ 42 return Utilities.loadImage("org/netbeans/modules/websvc/core/webservices/ui/resources/webservice.png"); } 44 45 public Image getOpenedIcon(int type){ 46 return getIcon( type); 47 } 48 49 public HelpCtx getHelpCtx() { 50 return HelpCtx.DEFAULT_HELP; 51 } 52 53 public boolean canDestroy() { 55 return false; 56 } 57 58 } 59 | Popular Tags |