1 19 package org.netbeans.test.editor.app.core; 20 21 import org.netbeans.test.editor.app.core.TestNode; 22 import org.netbeans.test.editor.app.core.cookies.PerformCookie; 23 import org.w3c.dom.Element ; 24 29 public abstract class TestAction extends TestNode { 30 31 32 public TestAction(String name) { 33 super(name); 34 } 35 36 public TestAction(Element node) { 37 super(node); 38 } 39 40 public Element toXML(Element node) { 41 return super.toXML(node); 42 } 43 44 public boolean isParent() { 45 return false; 46 } 47 48 protected void registerCookies() { 49 getCookieSet().put(PerformCookie.class,new PerformCookie() { 50 public void perform() { 51 TestAction.this.perform(); 52 } 53 54 public boolean isPerforming() { 55 return TestAction.this.isPerforming; 56 } 57 }); 58 } 59 } | Popular Tags |