1 19 20 package org.netbeans.modules.j2ee.ddloaders.multiview; 21 22 import org.netbeans.modules.j2ee.dd.api.ejb.Ejb; 23 import org.netbeans.modules.j2ee.dd.api.ejb.EntityAndSession; 24 import org.netbeans.modules.xml.multiview.ui.SectionNodeInnerPanel; 25 import org.netbeans.modules.xml.multiview.ui.SectionNodeView; 26 27 30 public class BeanEnvironmentNode extends EjbSectionNode { 31 32 BeanEnvironmentNode(SectionNodeView sectionNodeView, Ejb ejb) { 33 super(sectionNodeView, false, ejb, Utils.getBundleMessage("LBL_BeanEnvironment"), Utils.ICON_BASE_MISC_NODE); 34 addChild(new EjbReferencesNode(sectionNodeView, ejb)); 35 addChild(new EnvironmentEntriesNode(sectionNodeView, ejb)); 36 addChild(new ResourceReferencesNode(sectionNodeView, ejb)); 37 addChild(new ResourceEnvironmentReferencesNode(sectionNodeView, ejb)); 38 if (ejb instanceof EntityAndSession) { 39 addChild(new SecurityRoleReferencesNode(sectionNodeView, (EntityAndSession) ejb)); 40 } 41 } 42 43 protected SectionNodeInnerPanel createNodeInnerPanel() { 44 return null; 45 } 46 } 47 | Popular Tags |