|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.jellytools.modules.junit.nodes; /* * JUnitNode.java * * Created on 2/6/03 2:21 PM */ import org.netbeans.jellytools.actions.*; import org.netbeans.jellytools.modules.junit.actions.*; import org.netbeans.jellytools.nodes.Node; import javax.swing.tree.TreePath; import java.awt.event.KeyEvent; import org.netbeans.jemmy.operators.JTreeOperator; /** JUnitNode Class * @author dave */ public class JUnitNode extends Node { private static final Action createTestsAction = new CreateTestsAction(); private static final Action executeTestAction = new ExecuteTestAction(); private static final Action openTestAction = new OpenTestAction(); private static final Action propertiesAction = new PropertiesAction(); /** creates new JUnitNode * @param tree JTreeOperator of tree * @param treePath String tree path */ public JUnitNode(JTreeOperator tree, String treePath) { super(tree, treePath); } /** creates new JUnitNode * @param tree JTreeOperator of tree * @param treePath TreePath of node */ public JUnitNode(JTreeOperator tree, TreePath treePath) { super(tree, treePath); } /** creates new JUnitNode * @param parent parent Node * @param treePath String tree path from parent Node */ public JUnitNode(Node parent, String treePath) { super(parent, treePath); } /** tests popup menu items for presence */ public void verifyPopup() { verifyPopup(new Action[]{ createTestsAction, executeTestAction, openTestAction, propertiesAction }); } /** performs CreateTestsAction with this node */ public void createTests() { createTestsAction.perform(this); } /** performs ExecuteTestAction with this node */ public void executeTest() { executeTestAction.perform(this); } /** performs OpenTestAction with this node */ public void openTest() { openTestAction.perform(this); } /** performs PropertiesAction with this node */ public void properties() { propertiesAction.perform(this); } } |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.