1 19 package org.netbeans.jellytools.modules.xml.catalog.nodes; 20 21 26 27 import org.netbeans.jellytools.actions.*; 28 import org.netbeans.jellytools.nodes.Node; 29 import org.netbeans.jellytools.Bundle; 30 import javax.swing.tree.TreePath ; 31 import java.awt.event.KeyEvent ; 32 import org.netbeans.jemmy.operators.JTreeOperator; 33 34 36 public class CatalogEntryNode extends Node { 37 38 private static final Action viewAction = new ViewAction(); 39 private static final Action propertiesAction = new PropertiesAction(); 40 41 44 public CatalogEntryNode(JTreeOperator tree, String treePath) { 45 super(tree, treePath); 46 } 47 48 51 public CatalogEntryNode(JTreeOperator tree, TreePath treePath) { 52 super(tree, treePath); 53 } 54 55 58 public CatalogEntryNode(Node parent, String treePath) { 59 super(parent, treePath); 60 } 61 62 63 public void verifyPopup() { 64 verifyPopup(new Action[]{ 65 viewAction, 66 propertiesAction 67 }); 68 } 69 70 71 public void view() { 72 viewAction.perform(this); 73 } 74 75 76 public void properties() { 77 propertiesAction.perform(this); 78 } 79 } 80 81 | Popular Tags |