1 19 20 21 package org.netbeans.modules.j2ee.archive.ui; 22 23 import javax.swing.Action ; 24 import org.netbeans.spi.project.ui.support.CommonProjectActions; 25 import org.openide.loaders.DataFolder; 26 import org.openide.util.actions.SystemAction; 27 28 32 public class ModuleNode extends ConfigFilesNode { 33 34 35 final transient private String name; 36 37 public ModuleNode(DataFolder configFolder,String nodeName) { 38 super(configFolder); 39 this.name = nodeName; 40 } 41 42 public String getDisplayName() { 43 return name; } 45 46 public Action [] getActions(final boolean context) { 47 return new Action [] { 48 CommonProjectActions.newFileAction(), 49 null, 50 SystemAction.get(org.openide.actions.FindAction.class), 51 }; 52 } 53 54 } 55 | Popular Tags |