alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

/*
 * AntScriptNode.java
 *
 * Created on August 19, 2002, 3:05 PM
 */

package org.netbeans.jellytools.modules.ant.nodes;

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.jemmy.operators.JTreeOperator;

/**
 *
 * @author  mk97936
 */
public class AntScriptNode extends Node {
    
    static final ExecuteAction executeAction = new ExecuteAction();
    
    /** Creates a new instance of AntScriptNode */
    public AntScriptNode(String treePath) {
        super(new RepositoryTabOperator().tree(), treePath);
    }
    
    /** Creates a new instance of AntScriptNode */
    public AntScriptNode(JTreeOperator treeOperator, String treePath) {
        super(treeOperator, treePath);
    }
    
    /** performs ExecuteAction with this node */    
    public void execute() {
        executeAction.perform(this);
    }
    
    public void runTarget(String tn) {
        performPopupAction(Bundle.getString("org.apache.tools.ant.module.nodes.Bundle", // NOI18N
                                            "LBL_run_targets_action" + "|" + tn)); // NOI18N
    }
    
    public void addTarget() {
        performPopupAction("Add|target");
    }
    
    public void addProperty() {
        performPopupAction("Add|property");
    }
    
    public void addTaskdef() {
        performPopupAction("Add|taskdef");
    }
    
    public void addDescription() {
        performPopupAction("Add|description");
    }
    
    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 addPatternset() {
        performPopupAction("Add|patternset");
    }
    
}
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

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.