|
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 2002-2003 Sun * Microsystems, Inc. All Rights Reserved. */ /* * AntTargetNode.java * * Created on August 19, 2002, 3:05 PM */ package org.netbeans.jellytools.modules.ant.nodes; import org.netbeans.jemmy.EventTool; import org.netbeans.jellytools.Bundle; import org.netbeans.jellytools.nodes.Node; import org.netbeans.jellytools.RepositoryTabOperator; import org.netbeans.jellytools.actions.ExecuteAction; import org.netbeans.jellytools.modules.ant.SelectATaskDialog; import org.netbeans.jemmy.operators.JTreeOperator; /** * * @author mk97936 */ public class AntTargetNode extends Node { static final ExecuteAction executeAction = new ExecuteAction(); /** Creates a new instance of AntTargetNode */ public AntTargetNode(String treePath) { super(new RepositoryTabOperator().tree(), treePath); } /** Creates a new instance of AntTargetNode */ public AntTargetNode(JTreeOperator treeOperator, String treePath) { super(treeOperator, treePath); } /** Creates a new instance of AntTargetNode */ public AntTargetNode(Node parent, String trg) { super(parent, trg); } /** performs ExecuteAction with this node */ public void execute() { executeAction.perform(this); } public void addTask(String tsk) { performPopupActionNoBlock("Add" + "|" + Bundle.getString("org.apache.tools.ant.module.nodes.Bundle", // NOI18N "LBL_task_new_type")); // NOI18N SelectATaskDialog selectTask = new SelectATaskDialog(); selectTask.selectChooseATaskComboBox(tsk); selectTask.ok(); } public void addDescription() { performPopupAction("Add|description"); } public void addDirset() { performPopupAction("Add|dirset"); } public void addFilelist() { performPopupAction("Add|filelist"); } public void addFileset() { performPopupAction("Add|fileset"); } public void addFilterset() { performPopupAction("Add|filterset"); } public void addMapper() { performPopupAction("Add|mapper"); } public void addPath() { performPopupAction("Add|path"); } public void addRegexp() { performPopupAction("Add|regexp"); } public void addPatternset() { performPopupAction("Add|patternset"); } } |
... 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.