|
What this is
Other links
The source codepackage org.netbeans.jellytools.modules.xml.catalog.nodes;
import javax.swing.tree.TreePath;
import org.netbeans.jellytools.Bundle;
import org.netbeans.jellytools.actions.Action;
import org.netbeans.jellytools.actions.PropertiesAction;
import org.netbeans.jellytools.modules.xml.catalog.actions.MountCatalogAction;
import org.netbeans.jellytools.nodes.Node;
import org.netbeans.jemmy.operators.JTreeOperator;
/** XMLEntityCatalogsNode Class
* @author ms113234 */
public class XMLEntityCatalogsNode extends AbstractNode {
private static final String MY_PATH = Bundle
.getString("org.netbeans.modules.xml.catalog.Bundle", "TEXT_catalog_root"); // NOI18N
private static final Action mountCatalogAction = new MountCatalogAction();
private static final Action propertiesAction = new PropertiesAction();
/** creates new XMLEntityCatalogsNode
* @param tree JTreeOperator of tree
* @param treePath String tree path */
public XMLEntityCatalogsNode(JTreeOperator tree, String treePath) {
super(tree, treePath);
}
/** creates new XMLEntityCatalogsNode
* @param tree JTreeOperator of tree
* @param treePath TreePath of node */
public XMLEntityCatalogsNode(JTreeOperator tree, TreePath treePath) {
super(tree, treePath);
}
/** creates new XMLEntityCatalogsNode
* @param parent parent Node
* @param treePath String tree path from parent Node */
public XMLEntityCatalogsNode(Node parent, String treePath) {
super(parent, treePath);
}
/** tests popup menu items for presence */
public void verifyPopup() {
verifyPopup(new Action[]{
mountCatalogAction,
propertiesAction
});
}
/** performs MountCatalogAction with this node */
public void mountCatalog() {
mountCatalogAction.perform(this);
}
/** performs PropertiesAction with this node */
public void properties() {
propertiesAction.perform(this);
}
// LIB /////////////////////////////////////////////////////////////////////
/** returns default XML Entity Catalogs node instance */
public static XMLEntityCatalogsNode getInstance() {
return new XMLEntityCatalogsNode(AbstractNode.getRuntimeTab().tree(), MY_PATH);
}
/** returns catalog node with given name or
|
... 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.