String path = modelAllModules.getValueAt(selectedRow, pathColForAllModTable) + "";\r
ModuleIdentification mi = miList.get(selectedRow);\r
Vector<String> vArchs = null;\r
- try {\r
- vArchs = WorkspaceProfile.getModuleSupArchs(mi);\r
- }\r
- catch (Exception exp) {\r
- JOptionPane.showMessageDialog(frame, exp.getMessage());\r
- }\r
+\r
+ vArchs = WorkspaceProfile.getModuleSupArchs(mi);\r
\r
if (vArchs == null) {\r
JOptionPane.showMessageDialog(frame, "No Supported Architectures specified in MSA file.");\r
return;\r
}\r
\r
+ Vector<Object> platformSupArch = new Vector<Object>();\r
+ ffc.getPlatformDefsSupportedArchs(platformSupArch);\r
+ platformSupArch.retainAll(vArchs);\r
+ if (platformSupArch.size() == 0) {\r
+ JOptionPane.showMessageDialog(frame, "This Module does not support this platform architectures.");\r
+ return;\r
+ }\r
+ \r
String archsAdded = "";\r
String mg = mi.getGuid();\r
String mv = mi.getVersion();\r
//\r
// check whether archs conform to SupArch of platform.\r
//\r
- Vector<Object> platformSupArch = new Vector<Object>();\r
+ platformSupArch.removeAllElements();\r
ffc.getPlatformDefsSupportedArchs(platformSupArch);\r
vArchs.retainAll(platformSupArch);\r
//\r
getSupportedArchitectures(v);\r
if (v.size() == 0) {\r
JOptionPane.showMessageDialog(frame, "Platform must support at least ONE Architecture.");\r
+ jCheckBoxIa32.setSelected(true);\r
return;\r
}\r
ffc.setPlatformDefsSupportedArchs(v);\r
getSupportedArchitectures(v);\r
if (v.size() == 0) {\r
JOptionPane.showMessageDialog(frame, "Platform must support at least ONE Architecture.");\r
+ jCheckBoxX64.setSelected(true);\r
return;\r
}\r
ffc.setPlatformDefsSupportedArchs(v);\r
getSupportedArchitectures(v);\r
if (v.size() == 0) {\r
JOptionPane.showMessageDialog(frame, "Platform must support at least ONE Architecture.");\r
+ jCheckBoxIpf.setSelected(true);\r
return;\r
}\r
ffc.setPlatformDefsSupportedArchs(v);\r
getSupportedArchitectures(v);\r
if (v.size() == 0) {\r
JOptionPane.showMessageDialog(frame, "Platform must support at least ONE Architecture.");\r
+ jCheckBoxEbc.setSelected(true);\r
return;\r
}\r
ffc.setPlatformDefsSupportedArchs(v);\r
getSupportedArchitectures(v);\r
if (v.size() == 0) {\r
JOptionPane.showMessageDialog(frame, "Platform must support at least ONE Architecture.");\r
+ jCheckBoxArm.setSelected(true);\r
return;\r
}\r
ffc.setPlatformDefsSupportedArchs(v);\r
getSupportedArchitectures(v);\r
if (v.size() == 0) {\r
JOptionPane.showMessageDialog(frame, "Platform must support at least ONE Architecture.");\r
+ jCheckBoxPpc.setSelected(true);\r
return;\r
}\r
ffc.setPlatformDefsSupportedArchs(v);\r
return null;\r
}\r
\r
- public static Vector<String> getModuleSupArchs(ModuleIdentification mi) throws Exception {\r
+ public static Vector<String> getModuleSupArchs(ModuleIdentification mi){\r
Vector<String> vArchs = null;\r
ModuleSurfaceAreaDocument.ModuleSurfaceArea msa = (ModuleSurfaceAreaDocument.ModuleSurfaceArea)getModuleXmlObject(mi);\r
if (msa.getModuleDefinitions() == null || msa.getModuleDefinitions().getSupportedArchitectures() == null) {\r