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

/*
 *                 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-2003 Sun
 * Microsystems, Inc. All Rights Reserved.
 */


package org.netbeans.web.test.nodes;

import org.netbeans.jellytools.nodes.*;
import org.netbeans.web.test.actions.*;
import javax.swing.tree.TreePath;
import org.netbeans.jellytools.RepositoryTabOperator;
import org.netbeans.jellytools.nodes.Node;
import org.netbeans.jellytools.actions.*;
import org.netbeans.jemmy.operators.JTreeOperator;

/** Node representing Servlet source */
public class ServletNode extends Node {
    
    public ServletNode(String treePath) {
       super(new RepositoryTabOperator().tree(), treePath);
    }

    public ServletNode(JTreeOperator treeOperator, String treePath) {
       super(treeOperator, treePath);
    }

    public ServletNode(Node parent, String treeSubPath) {
       super(parent, treeSubPath);
    }

    public ServletNode(JTreeOperator treeOperator, TreePath path) {
       super(treeOperator, path);
    }

    static final OpenAction openAction = new OpenAction();
    static final CompileAction compileAction = new CompileAction();
    static final BuildAction buildAction = new BuildAction();
    static final ExecuteAction executeAction = new ExecuteAction();
    static final DeployAction deployAction = new DeployAction();
    static final CleanAction cleanAction = new CleanAction();
    static final CutAction cutAction = new CutAction();
    static final CopyAction copyAction = new CopyAction();
    static final PasteAction pasteAction = new PasteAction();
    static final DeleteAction deleteAction = new DeleteAction();
    static final RenameAction renameAction = new RenameAction();
    static final SaveAsTemplateAction saveAsTemplateAction = new SaveAsTemplateAction();
    static final PropertiesAction propertiesAction = new PropertiesAction();
    static final ExecuteForceReloadAction executeForceReloadAction = new ExecuteForceReloadAction();
    
    /** performs OpenAction with this node */    
    public void open() {
        openAction.perform(this);
    }

    /** performs CompileAction with this node */    
    public void compile() {
        compileAction.perform(this);
    }

    /** performs BuildAction with this node */    
    public void build() {
        buildAction.perform(this);
    }

    /** performs ExecuteAction with this node */    
    public void execute() {
        executeAction.perform(this);
    }

    /** performs ExecuteForceReloadAction with this node */
    public void executeForceReload() {
	executeForceReloadAction.perform(this);
    }

    /** performs DeployAction with this node */    
    public void deploy() {
        deployAction.perform(this);
    }

    /** performs CleanAction with this node */    
    public void clean() {
        cleanAction.perform(this);
    }

    /** performs CutAction with this node */    
    public void cut() {
        cutAction.perform(this);
    }

    /** performs CopyAction with this node */    
    public void copy() {
        copyAction.perform(this);
    }

    /** performs PasteAction with this node */    
    public void paste() {
        pasteAction.perform(this);
    }

    /** performs DeleteAction with this node */    
    public void delete() {
        deleteAction.perform(this);
    }

    /** performs RenameAction with this node */    
    public void rename() {
        renameAction.perform(this);
    }

    /** performs SaveAsTemplateAction with this node */    
    public void saveAsTemplate() {
        saveAsTemplateAction.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

 

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.