1 21 package org.jacorb.ir.gui.typesystem.remote; 22 23 import org.omg.CORBA.*; 24 import javax.swing.tree.*; 25 import org.jacorb.ir.gui.typesystem.*; 26 27 35 36 public abstract class IRContainer 37 extends IRNode 38 implements AbstractContainer 39 { 40 41 44 protected IRContainer() { 45 super(); 46 } 47 48 51 52 protected IRContainer ( IRObject irObject) 53 { 54 super(irObject); 55 } 56 57 65 66 public org.jacorb.ir.gui.typesystem.ModelParticipant[] contents () 67 { 68 Container container = 69 ContainerHelper.narrow((org.omg.CORBA.Object )this.irObject); 70 Contained[] contents = 71 container.contents(DefinitionKind.dk_all, true); 72 73 org.jacorb.ir.gui.typesystem.TypeSystemNode[] result = 74 new org.jacorb.ir.gui.typesystem.TypeSystemNode[contents.length]; 75 76 for (int i=0; i<contents.length; i++) 77 { 78 result[i] = RemoteTypeSystem.createTypeSystemNode(contents[i]); 79 } 80 return result; 81 } 82 } 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | Popular Tags |