1 26 27 package org.objectweb.openccm.explorer.CORBA; 28 29 import org.objectweb.openccm.explorer.util.ior.IorPrinter; 30 import org.objectweb.util.explorer.api.Info; 31 import org.objectweb.util.explorer.api.TreeView; 32 33 40 public class CORBAObjectInfo 41 implements Info 42 { 43 44 50 56 62 protected String getInfo(org.omg.CORBA.Object object){ 63 org.omg.CORBA.ORB orb = org.objectweb.openccm.corba.TheORB.getORB(); 64 IorPrinter iorPrinter = new IorPrinter(orb.object_to_string(object)); 65 return "ID: " + iorPrinter.getTypeId() + ", Host: " + iorPrinter.getHost() + ", Port: " + iorPrinter.getPort(); 66 } 67 68 74 public String getInfo(TreeView treeView) { 75 return getInfo((org.omg.CORBA.Object ) treeView.getSelectedObject()); 76 } 77 78 } 79 | Popular Tags |