1 26 27 package org.objectweb.openccm.descriptor.softpkg.gui; 28 29 import org.objectweb.openccm.descriptor.softpkg.beans.*; 30 import org.objectweb.openccm.descriptor.softpkg.*; 31 import org.objectweb.openccm.descriptor.corbacomponent.beans.CorbacomponentBean; 32 import org.objectweb.openccm.descriptor.corbacomponent.beans.CorbacomponentBeanImpl; 33 import org.objectweb.openccm.descriptor.corbacomponent.gui.CorbacomponentZipper; 34 35 42 public class DescriptorZipper 43 { 44 50 56 62 66 public void 67 zipCall( 68 DescriptorBean descriptor 69 , org.objectweb.openccm.packaging.ZipFactory zip_factory 70 ) 71 { 72 FileinarchiveBean fileinarchive 73 = (FileinarchiveBean) 74 descriptor.getFileinarchive(); 75 76 if (fileinarchive != null) 78 { 79 FileinarchiveZipper sub_zipper 80 = (FileinarchiveZipper) fileinarchive 81 .getExtensionManager() 82 .getExtensionByName("gui.Zipper") 83 .getInstance(); 84 85 sub_zipper.zipCall(fileinarchive, zip_factory); 86 87 88 java.io.File ccd_file 90 = new java.io.File (fileinarchive.getName()); 91 92 if (ccd_file.exists()) 93 { 94 try 95 { 96 CorbacomponentBean ccd_instance 97 = CorbacomponentBeanImpl.unmarshalBean(ccd_file); 98 99 CorbacomponentZipper ccd_zipper 100 = (CorbacomponentZipper) 101 ccd_instance 102 .getExtensionManager() 103 .getExtensionByName("gui.Zipper") 104 .getInstance(); 105 106 ccd_zipper.zipCall(ccd_instance, zip_factory); 107 108 } catch (java.io.IOException exc) { 109 System.err.println( 110 "CCD file: " 111 +fileinarchive.getName() 112 +" could not be opened -> no CORBA properties dependencies to add."); 113 } 114 } 115 } 116 } 117 } 118 | Popular Tags |