+ \r
+ //\r
+ // Update GlobalData\r
+ //\r
+ GlobalData.vPackageList.addElement(pid);\r
+ GlobalData.openingPackageList.insertToOpeningPackageList(pid, spd);\r
+ \r
+ //\r
+ // Add all cloned modules\r
+ //\r
+ Vector<String> modulePaths = GlobalData.getAllModulesOfPackage(pid.getPath());\r
+ String modulePath = null;\r
+ ModuleSurfaceArea msa = null;\r
+ \r
+ for (int indexJ = 0; indexJ < modulePaths.size(); indexJ++) {\r
+ try {\r
+ modulePath = modulePaths.get(indexJ);\r
+ msa = OpenFile.openMsaFile(modulePath);\r
+ } catch (IOException e) {\r
+ Log.err("Open Module Surface Area " + modulePath, e.getMessage());\r
+ continue;\r
+ } catch (XmlException e) {\r
+ Log.err("Open Module Surface Area " + modulePath, e.getMessage());\r
+ continue;\r
+ } catch (Exception e) {\r
+ Log.err("Open Module Surface Area " + modulePath, "Invalid file type");\r
+ continue;\r
+ }\r
+ Identification id = Tools.getId(modulePath, msa);\r
+ mid = new ModuleIdentification(id, pid);\r
+ GlobalData.vModuleList.addElement(mid);\r
+ GlobalData.openingModuleList.insertToOpeningModuleList(mid, msa);\r
+ }\r
+ \r