1 26 package org.objectweb.openccm.explorer.DCI; 27 28 import org.objectweb.openccm.explorer.CORBA.ConsoleFactory; 29 import org.objectweb.util.explorer.api.RootContext; 30 import org.objectweb.util.explorer.api.RootEntry; 31 import org.objectweb.util.explorer.core.root.lib.DefaultRootEntry; 32 33 40 public class DCIRootContext 41 implements RootContext 42 { 43 44 50 56 62 68 71 public RootEntry[] getEntries() { 72 java.util.Vector values = new java.util.Vector (); 73 try { 75 org.omg.CORBA.Object o = org.objectweb.openccm.corba.TheORB.getORB().resolve_initial_references("DCI"); 76 values.add(new DefaultRootEntry("DCI Manager", o, 1)); 77 } catch (org.omg.CORBA.ORBPackage.InvalidName e1) { 78 ConsoleFactory.getDebugConsole().add("DCI Manager is not available! \n"); 80 } catch (org.omg.CORBA.TRANSIENT e1) { 81 ConsoleFactory.getDebugConsole().add("DCI Manager is not available! \n"); 83 } 84 return (RootEntry[])values.toArray(new RootEntry[0]); 85 } 86 87 } | Popular Tags |