1 19 20 package org.netbeans.modules.websvc.dev.wizard.nodes; 21 22 import java.awt.Image ; 23 import org.netbeans.modules.websvc.api.jaxws.wsdlmodel.WsdlPort; 24 import org.openide.nodes.AbstractNode; 25 import org.openide.nodes.Children; 26 import org.openide.util.HelpCtx; 27 import org.openide.util.Utilities; 28 29 33 public class PortNode extends AbstractNode { 34 WsdlPort port; 35 36 public PortNode(WsdlPort port) { 37 super(Children.LEAF); 38 this.port=port; 39 setName(port.getName()); 40 setDisplayName(port.getName()); 41 } 42 43 public Image getIcon(int type){ 44 return Utilities.loadImage("org/netbeans/modules/websvc/core/webservices/ui/resources/wsport.png"); } 46 47 public Image getOpenedIcon(int type){ 48 return getIcon( type); 49 } 50 51 public HelpCtx getHelpCtx() { 52 return HelpCtx.DEFAULT_HELP; 53 } 54 55 public boolean canDestroy() { 57 return false; 58 } 59 60 } | Popular Tags |