- //\r
- // Check Supported Arch\r
- //\r
- if (arg0.getSource() == this.jCheckBoxArm || arg0.getSource() == this.jCheckBoxEbc\r
- || arg0.getSource() == this.jCheckBoxIa32 || arg0.getSource() == this.jCheckBoxIpf\r
- || arg0.getSource() == this.jCheckBoxPpc || arg0.getSource() == this.jCheckBoxX64) {\r
- if (!this.getSelectedItemsString().equals(md.getSupportedArchitectures().toString())) {\r
- md.setSupportedArchitectures(this.getSelectedItemsVector());\r
- } else {\r
- return;\r
- }\r
- }\r
-\r
- //\r
- // Check Flash Map\r
- //\r
- if (arg0.getSource() == this.jCheckBoxFlashMap) {\r
- if ((this.ex == null) && this.jCheckBoxFlashMap.isSelected()) {\r
- this.ex = ExternsDocument.Externs.Factory.newInstance();\r
- this.ex.setTianoR8FlashMapH(this.jCheckBoxFlashMap.isSelected());\r
- this.msa.setExterns(this.ex);\r
- } else if ((this.ex != null) && this.jCheckBoxFlashMap.isSelected()) {\r
- this.ex.setTianoR8FlashMapH(this.jCheckBoxFlashMap.isSelected());\r
- this.msa.setExterns(this.ex);\r
- } else if ((this.ex != null) && !this.jCheckBoxFlashMap.isSelected()) {\r
- ExternsDocument.Externs newEx = ExternsDocument.Externs.Factory.newInstance();\r
- if (this.ex.getExternList() != null) {\r
- for (int index = 0; index < this.ex.getExternList().size(); index++) {\r
- newEx.addNewExtern();\r
- newEx.setExternArray(index, this.ex.getExternArray(index));\r
- }\r
- }\r
- if (this.ex.getSpecificationList() != null) {\r
- for (int index = 0; index < this.ex.getSpecificationList().size(); index++) {\r
- newEx.addNewSpecification();\r
- newEx.setSpecificationArray(index, this.ex.getSpecificationArray(index));\r
- }\r
- }\r
- if (this.ex.getPcdIsDriver() != null) {\r
- newEx.setPcdIsDriver(this.ex.getPcdIsDriver());\r
- }\r
- this.ex = newEx;\r
- this.msa.setExterns(this.ex);\r
- }\r
- }\r
-\r