1 26 27 package org.objectweb.openccm.explorer.DCI; 28 29 import org.ist.coach.DCI.NodeManager; 30 import org.ist.coach.DCI.ExtComponentInstallation; 31 import org.objectweb.openccm.corba.TheORB; 32 import org.objectweb.openccm.explorer.CORBA.TypageCORBA; 33 import org.objectweb.util.explorer.api.Table; 34 import org.objectweb.util.explorer.api.TreeView; 35 import org.objectweb.util.explorer.core.naming.lib.DefaultEntry; 36 37 44 public class ComponentInstallationTable 45 implements Table 46 { 47 48 54 60 66 protected String getName(org.omg.CORBA.Object o) { 67 TypageCORBA tc = new TypageCORBA(o, TheORB.getORB()); 68 return tc.getTypeID(); 69 } 70 71 77 81 public String [] getHeaders(TreeView treeView) { 82 return new String []{"Archive"}; 83 } 84 85 89 public Object [][] getRows(TreeView treeView) { 90 NodeManager nodeManager = (NodeManager)treeView.getSelectedObject(); 91 ExtComponentInstallation componentInstallation = nodeManager.provide_component_installation(); 92 if(componentInstallation!=null){ 93 String [] uuids = componentInstallation.get_all_implUUIDs(); 94 Object [][] contenu = new Object [uuids.length][1]; 95 for (int i = 0; i < uuids.length; i++) { 96 contenu[i][0] = new DefaultEntry(uuids[i], new ArchiveUUID(uuids[i])); 97 } 98 return contenu; 99 } 100 return null; 101 } 102 } 103 | Popular Tags |