private JCheckBox jCheckBoxArm = null;\r
\r
private JCheckBox jCheckBoxPpc = null;\r
- \r
+\r
/**\r
* This method initializes jCheckBoxIa32 \r
* \r
this.add(getJCheckBoxPpc(), null);\r
this.setToolTipText(DataType.SUP_ARCH_LIST_HELP_TEXT);\r
}\r
- \r
+\r
public Vector<String> getSelectedItemsVector() {\r
Vector<String> v = new Vector<String>();\r
if (this.jCheckBoxIa32.isSelected()) {\r
}\r
return v;\r
}\r
- \r
+\r
public String getSelectedItemsString() {\r
String s = "";\r
if (this.jCheckBoxIa32.isSelected()) {\r
}\r
return s.trim();\r
}\r
- \r
+\r
public void setAllItemsSelected(boolean isSelected) {\r
this.jCheckBoxIa32.setSelected(isSelected);\r
this.jCheckBoxX64.setSelected(isSelected);\r
this.jCheckBoxArm.setSelected(isSelected);\r
this.jCheckBoxPpc.setSelected(isSelected);\r
}\r
- \r
+\r
public void setSelectedItems(Vector<String> v) {\r
setAllItemsSelected(false);\r
if (v != null) {\r
}\r
}\r
}\r
+\r
+ public void setAllItemsEnabled(boolean isEnabled) {\r
+ this.jCheckBoxIa32.setEnabled(isEnabled);\r
+ this.jCheckBoxX64.setEnabled(isEnabled);\r
+ this.jCheckBoxIpf.setEnabled(isEnabled);\r
+ this.jCheckBoxEbc.setEnabled(isEnabled);\r
+ this.jCheckBoxArm.setEnabled(isEnabled);\r
+ this.jCheckBoxPpc.setEnabled(isEnabled);\r
+ }\r
+\r
+ public void setEnabledItems(Vector<String> v) {\r
+ setAllItemsEnabled(false);\r
+ if (v != null) {\r
+ for (int index = 0; index < v.size(); index++) {\r
+ if (v.get(index).equals(this.jCheckBoxIa32.getText())) {\r
+ this.jCheckBoxIa32.setEnabled(true);\r
+ continue;\r
+ }\r
+ if (v.get(index).equals(this.jCheckBoxIpf.getText())) {\r
+ this.jCheckBoxIpf.setEnabled(true);\r
+ continue;\r
+ }\r
+ if (v.get(index).equals(this.jCheckBoxX64.getText())) {\r
+ this.jCheckBoxX64.setEnabled(true);\r
+ continue;\r
+ }\r
+ if (v.get(index).equals(this.jCheckBoxEbc.getText())) {\r
+ this.jCheckBoxEbc.setEnabled(true);\r
+ continue;\r
+ }\r
+ if (v.get(index).equals(this.jCheckBoxArm.getText())) {\r
+ this.jCheckBoxArm.setEnabled(true);\r
+ continue;\r
+ }\r
+ if (v.get(index).equals(this.jCheckBoxPpc.getText())) {\r
+ this.jCheckBoxPpc.setEnabled(true);\r
+ continue;\r
+ }\r
+ }\r
+ }\r
+ }\r
+\r
+ public void setDisabledItems(Vector<String> v) {\r
+ setAllItemsEnabled(true);\r
+ if (v != null) {\r
+ for (int index = 0; index < v.size(); index++) {\r
+ if (v.get(index).equals(this.jCheckBoxIa32.getText())) {\r
+ this.jCheckBoxIa32.setEnabled(false);\r
+ continue;\r
+ }\r
+ if (v.get(index).equals(this.jCheckBoxIpf.getText())) {\r
+ this.jCheckBoxIpf.setEnabled(false);\r
+ continue;\r
+ }\r
+ if (v.get(index).equals(this.jCheckBoxX64.getText())) {\r
+ this.jCheckBoxX64.setEnabled(false);\r
+ continue;\r
+ }\r
+ if (v.get(index).equals(this.jCheckBoxEbc.getText())) {\r
+ this.jCheckBoxEbc.setEnabled(false);\r
+ continue;\r
+ }\r
+ if (v.get(index).equals(this.jCheckBoxArm.getText())) {\r
+ this.jCheckBoxArm.setEnabled(false);\r
+ continue;\r
+ }\r
+ if (v.get(index).equals(this.jCheckBoxPpc.getText())) {\r
+ this.jCheckBoxPpc.setEnabled(false);\r
+ continue;\r
+ }\r
+ }\r
+ }\r
+ }\r
}\r
\r
private Vector<String> vArchList = null;\r
\r
+ private Vector<String> vDisableArchList = null;\r
+\r
//\r
// Not used by UI\r
//\r
jComboBoxActivePlatform.setBounds(new java.awt.Rectangle(valueColumn, activePlatformRow, valueWidth,\r
oneRowHeight));\r
jComboBoxActivePlatform.setPreferredSize(new java.awt.Dimension(valueWidth, oneRowHeight));\r
- jComboBoxActivePlatform.setToolTipText("<html>Select "Do Not Set" if you want to build a platform"\r
+ jComboBoxActivePlatform\r
+ .setToolTipText("<html>Select "Do Not Set" if you want to build a platform"\r
+ "<br>from the directory where the FPD file exists,"\r
+ "<br>otherwise scroll down to select the platform.</html>");\r
\r
private ICheckBoxList getICheckBoxListTagName() {\r
if (iCheckBoxListTagName == null) {\r
iCheckBoxListTagName = new ICheckBoxList();\r
- \r
+\r
if (toolsDefTagNames != null) {\r
toolsDefTagNames.trim();\r
String aTagNames[] = toolsDefTagNames.trim().split(" ");\r
Vector<String> defaultTags = stringToVector("MYTOOLS");\r
iCheckBoxListTagName.setAllItems(defaultTags);\r
}\r
- \r
+\r
iCheckBoxListTagName.setAllItemsUnchecked();\r
iCheckBoxListTagName.setToolTipText("<html>"\r
+ "Specify the TagName(s) from the tool configuration file to use"\r
\r
private ICheckBoxList getICheckBoxListBuildTarget() {\r
if (iCheckBoxListBuildTarget == null) {\r
- \r
+\r
String aBuildTargets[] = toolsDefTargetNames.trim().split(" ");\r
Vector<String> vBuildTargets = new Vector<String>();\r
for (int i = 0; i < aBuildTargets.length; i++) {\r
lineCounter++;\r
}\r
reader.close();\r
+ // Only enable Architecture selection based on tool chain installations\r
+ String turnOff = "";\r
+ if (!toolsDefArchNames.contains("EBC"))\r
+ turnOff = "EBC ";\r
+ if (!toolsDefArchNames.contains("PPC"))\r
+ turnOff += "PPC ";\r
+ if (!toolsDefArchNames.contains("IPF"))\r
+ turnOff += "IPF ";\r
+ if (!toolsDefArchNames.contains("X64"))\r
+ turnOff += "X64 ";\r
+ if (!toolsDefArchNames.contains("IA32"))\r
+ turnOff += "X64 ";\r
+ if (!toolsDefArchNames.contains("ARM"))\r
+ turnOff += "ARM ";\r
+ turnOff = turnOff.trim();\r
+ vDisableArchList = stringToVector(turnOff);\r
+\r
if (!toolsDefTargetNames.matches("[A-Z]+")) {\r
toolsDefTargetNames = toolsDefTargetNames.replace("* ", "").trim();\r
if (Debug)\r
\r
jContentPane.add(jLabelTargetArch, null);\r
\r
+ jArchCheckBox.setDisabledItems(vDisableArchList);\r
jArchCheckBox.setSelectedItems(vArchList);\r
jContentPane.add(jArchCheckBox, null);\r
\r