1 19 package org.netbeans.modules.j2ee.oc4j.nodes; 20 21 import org.openide.nodes.AbstractNode; 22 import org.openide.nodes.Children; 23 import org.openide.nodes.Node; 24 import org.openide.util.Lookup; 25 import org.openide.util.NbBundle; 26 27 31 public class OC4JTargetNode extends AbstractNode { 32 33 public OC4JTargetNode(Lookup lookup) { 34 super(new Children.Array()); 35 36 getChildren().add(new Node[] { 38 new OC4JItemNode(lookup, 39 new OC4JJ2EEApplicationsChildren(lookup), 40 NbBundle.getMessage(OC4JTargetNode.class, "LBL_Apps"), 41 OC4JItemNode.ItemType.J2EE_APPLICATION_FOLDER) 42 }); 43 44 getChildren().add(new Node[] { 46 new OC4JItemNode(lookup, 47 new OC4JNativeDataSourcesChildren(lookup), 48 NbBundle.getMessage(OC4JTargetNode.class, "LBL_NativeDataSources"), 49 OC4JItemNode.ItemType.REFRESHABLE_FOLDER) 50 }); 51 52 getChildren().add(new Node[] { 54 new OC4JItemNode(lookup, 55 new OC4JManagedDataSourcesChildren(lookup), 56 NbBundle.getMessage(OC4JTargetNode.class, "LBL_ManagedDataSources"), 57 OC4JItemNode.ItemType.REFRESHABLE_FOLDER) 58 }); 59 60 getChildren().add(new Node[] { 62 new OC4JItemNode(lookup, 63 new OC4JConnectionPoolsChildren(lookup), 64 NbBundle.getMessage(OC4JTargetNode.class, "LBL_ConnectionPools"), 65 OC4JItemNode.ItemType.REFRESHABLE_FOLDER) 66 }); 67 } 68 } | Popular Tags |