1 19 20 package org.netbeans.modules.j2ee.deployment.impl.ui; 21 22 import org.openide.nodes.*; 23 import org.openide.util.HelpCtx; 24 import org.netbeans.modules.j2ee.deployment.impl.ServerTarget; 25 import javax.swing.Action ; 26 27 28 34 public class TargetBaseNode extends AbstractNode { 35 36 public TargetBaseNode(Children children, ServerTarget target) { 37 super(children); 38 setDisplayName(target.getName()); 39 setIconBase(target.getInstance().getServer().getIconBase()); 40 getCookieSet().add(target); 41 } 42 43 public Action [] getActions(boolean b) { 44 return new Action [] {}; 45 } 46 47 protected ServerTarget getServerTarget() { 48 return (ServerTarget) getCookie(ServerTarget.class); 49 } 50 51 public HelpCtx getHelpCtx() { 52 return HelpCtx.DEFAULT_HELP; 53 } 54 55 public Sheet createSheet() { 56 return Sheet.createDefault(); 57 } 58 } 59 | Popular Tags |