import javax.swing.JCheckBox;\r
import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
import org.tianocore.frameworkwizard.platform.ui.ListEditor;\r
+import org.tianocore.frameworkwizard.platform.ui.LongTextEditor;\r
\r
import java.awt.Rectangle;\r
import java.util.Vector;\r
jComboBoxDataType.addItem("BOOLEAN");\r
TableColumn dataTypeColumn = jTable.getColumnModel().getColumn(3);\r
dataTypeColumn.setCellEditor(new DefaultCellEditor(jComboBoxDataType));\r
+ \r
+ jTable.getColumnModel().getColumn(5).setCellEditor(new LongTextEditor());\r
\r
Vector<String> vArch = new Vector<String>();\r
vArch.add("IA32");\r
return;\r
}\r
if (column <= 10 && column >= 6) {\r
- if (compareTwoVectors(stringToVector(usage), stringToVector(sa[6]))) {\r
+ Vector<String> v = stringToVector(usage);\r
+ if (compareTwoVectors(v, stringToVector(sa[6]))) {\r
+ return;\r
+ }\r
+ if (v.contains("FEATURE_FLAG") && v.size() > 1) {\r
+ JOptionPane.showMessageDialog(frame, "Usage Feature Flag can NOT co-exist with others.");\r
return;\r
}\r
}\r
}\r
\r
protected Vector<String> stringToVector(String s){\r
+ Vector<String> v = new Vector<String>();\r
if (s == null) {\r
- return null;\r
+ return v;\r
}\r
String[] sArray = s.split(" ");\r
- Vector<String> v = new Vector<String>();\r
+ \r
for (int i = 0; i < sArray.length; ++i) {\r
v.add(sArray[i]);\r
}\r