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.WsdlService; 23 import org.openide.nodes.AbstractNode; 24 import org.openide.util.HelpCtx; 25 import org.openide.util.Utilities; 26 27 31 public class ServiceNode extends AbstractNode { 32 WsdlService service; 33 34 public ServiceNode(WsdlService service) { 35 super(new ServiceChildren(service)); 36 this.service=service; 37 setName(service.getName()); 38 setDisplayName(service.getName()); 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 |