1 26 27 package org.objectweb.openccm.packaging; 28 29 35 public class CCMSplitPane 36 extends org.objectweb.apollon.gui.ApollonSplitPane 37 { 38 44 50 53 public 54 CCMSplitPane() 55 { 56 super(); 57 58 org.objectweb.openccm.descriptor.EntityResolver.setCCMResolver(); 60 } 61 62 68 75 private void 76 store_ccm_elements(org.objectweb.apollon.framework.Bean instance, String filename) 77 { 78 if (filename.endsWith(".cad") 80 || filename.endsWith(".CAD")) 81 { 82 org.objectweb.openccm.descriptor.componentassembly.beans.ComponentassemblyBean 84 assembly_instance 85 = (org.objectweb.openccm.descriptor.componentassembly.beans.ComponentassemblyBean) 86 instance; 87 88 CCMIdRefsSingleton.getInstance().addAssembly(assembly_instance); 90 } 91 92 if (filename.endsWith(".csd") 93 || filename.endsWith(".CSD")) 94 { 95 org.objectweb.openccm.descriptor.softpkg.beans.SoftpkgBean 97 software_instance 98 = (org.objectweb.openccm.descriptor.softpkg.beans.SoftpkgBean) 99 instance; 100 101 CCMIdRefsSingleton.getInstance().addPackage(software_instance); 103 } 104 } 105 106 112 117 public void 118 add_instance_to_tree(org.objectweb.apollon.framework.Bean instance, java.io.File file) 119 { 120 super.add_instance_to_tree(instance, file); 121 122 this.store_ccm_elements(instance,file.getName()); 123 124 164 } 165 166 171 public void 172 save_tree_entry(org.objectweb.util.browser.api.Entry tree_entry) 173 { 174 super.save_tree_entry(tree_entry); 175 176 this.store_ccm_elements( 177 (org.objectweb.apollon.framework.Bean) 178 ((org.objectweb.apollon.framework.Context) 179 tree_entry.getValue() 180 ).getSource() 181 ,(String ) tree_entry.getName() 182 ); 183 } 184 } 185 | Popular Tags |