1 19 package org.netbeans.test.editor.app.gui.actions; 20 21 import org.netbeans.test.editor.app.core.TestCallAction; 22 import org.netbeans.test.editor.app.gui.tree.TestNodeDelegate; 23 24 29 public class TestGrabInputAction extends TreeNodeAction { 30 31 32 public TestGrabInputAction() { 33 } 34 35 public String getName() { 36 return "Grab Input"; 37 } 38 39 public boolean enable(TestNodeDelegate[] activatedNodes) { 40 return true; 41 } 42 43 public String getHelpCtx() { 44 return "Set actual editor content as Input to actual Call action."; 45 } 46 47 public void performAction(TestNodeDelegate[] activatedNodes) { 48 TestNodeDelegate n; 49 for(int i=0;i < activatedNodes.length;i++) { 50 n=(TestNodeDelegate)activatedNodes[i]; 51 ((TestCallAction)(n.getTestNode())).grabInput(); 52 } 53 } 54 55 } 56 | Popular Tags |