package org.tianocore.frameworkwizard.packaging.ui;\r
\r
import java.awt.Dimension;\r
+import java.awt.Point;\r
import java.awt.event.ActionEvent;\r
import java.awt.event.ComponentEvent;\r
import java.util.Vector;\r
import org.tianocore.frameworkwizard.common.ui.StarLabel;\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
/**\r
GUI for create library definition elements of spd file.\r
\r
protected String[][] saa = null;\r
\r
+ protected StarLabel starLabel = null;\r
+\r
/**\r
This method initializes this\r
\r
model.addColumn("Supported Module Types");\r
model.addColumn("GuidTypes");\r
jTable.getColumnModel().getColumn(2).setCellEditor(new GuidEditor());\r
+ jTable.getColumnModel().getColumn(3).setCellEditor(new LongTextEditor());\r
\r
Vector<String> vArch = new Vector<String>();\r
vArch.add("IA32");\r
vGuid.add("HII_PACKAGE_LIST");\r
vGuid.add("HOB");\r
vGuid.add("TOKEN_SPACE_GUID");\r
- jTable.getColumnModel().getColumn(6).setCellEditor(new ListEditor(vGuid));\r
+ ListEditor le = new ListEditor(vGuid);\r
+ le.setCanNotBeEmpty(true);\r
+ jTable.getColumnModel().getColumn(6).setCellEditor(le);\r
\r
jTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r
jTable.getSelectionModel().addListSelectionListener(new ListSelectionListener(){\r
if (cellData.equals(sa[column])) {\r
return;\r
}\r
+ \r
if (cellData.toString().length() == 0 && sa[column] == null) {\r
return;\r
}\r
**/\r
protected JPanel getJContentPane1() {\r
if (jContentPane == null) {\r
+ \r
jLabelGuidType = new JLabel();\r
- jLabelGuidType.setBounds(new java.awt.Rectangle(400,122,103,16));\r
+ jLabelGuidType.setBounds(new java.awt.Rectangle(420,122,103,16));\r
jLabelGuidType.setText("GUID Type List");\r
jLabelGuidType.setEnabled(true);\r
+ starLabel = new StarLabel();\r
+ starLabel.setLocation(new Point(jLabelGuidType.getX() - 20, jLabelGuidType.getY()));\r
+ starLabel.setVisible(true);\r
jLabelSupArch = new JLabel();\r
jLabelSupArch.setBounds(new java.awt.Rectangle(197,122,108,16));\r
jLabelSupArch.setText("Supported Arch");\r
jContentPane.add(getJScrollPaneGuid(), null);\r
jContentPane.add(getJScrollPaneModule(), null);\r
jContentPane.add(jLabelGuidType, null);\r
+ jContentPane.add(starLabel, null);\r
}\r
return jContentPane;\r
}\r
vguidType = null;\r
}\r
if (vguidType == null) {\r
- JOptionPane.showMessageDialog(this, "You must select one GUID type.");\r
+ JOptionPane.showMessageDialog(this, "You must select at least one GUID type.");\r
return -1;\r
}\r
if (docConsole != null) {\r