diff options
author | jlin16 <jlin16@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-08-16 17:37:34 +0000 |
---|---|---|
committer | jlin16 <jlin16@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-08-16 17:37:34 +0000 |
commit | d96d701f982eb36010ab7c4da8cf15ddfbd5f136 (patch) | |
tree | c73e63687c3d499a57ec793c10da0fdb309869f3 /Tools/Source | |
parent | bd4814401e1277f19fa1498dbd187dca68923b47 (diff) | |
download | edk2-d96d701f982eb36010ab7c4da8cf15ddfbd5f136.zip edk2-d96d701f982eb36010ab7c4da8cf15ddfbd5f136.tar.gz edk2-d96d701f982eb36010ab7c4da8cf15ddfbd5f136.tar.bz2 |
fix EDKT189.
and remove FFS file Guid text field from ModuleSaOptions pane.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1298 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Source')
2 files changed, 38 insertions, 11 deletions
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFrameworkModules.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFrameworkModules.java index 0a15d31..ee0a1e6 100644 --- a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFrameworkModules.java +++ b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFrameworkModules.java @@ -345,13 +345,34 @@ public class FpdFrameworkModules extends IInternalFrame { ArrayList<String> al = fpdMsa.get(mg + mv + pg + pv);
if (al == null) {
- al = new ArrayList<String>();
- fpdMsa.put(mg + mv + pg + pv, al);
+ //
+ // if existing ModuleSA does not specify version info.
+ //
+ al = fpdMsa.get(mg + "null" + pg + "null");
+ if (al == null) {
+ al = fpdMsa.get(mg + "null" + pg + pv);
+ if (al == null){
+ al = fpdMsa.get(mg + mv + pg + "null");
+ if (al == null) {
+ al = new ArrayList<String>();
+ fpdMsa.put(mg + mv + pg + pv, al);
+ }
+ }
+ }
}
+ //
+ // filter from module SupArchs what archs has been added.
+ //
for (int i = 0; i < al.size(); ++i) {
vArchs.remove(al.get(i));
}
//
+ // check whether archs conform to SupArch of platform.
+ //
+ Vector<Object> platformSupArch = new Vector<Object>();
+ ffc.getPlatformDefsSupportedArchs(platformSupArch);
+ vArchs.retainAll(platformSupArch);
+ //
// Archs this Module supported have already been added.
//
if (vArchs.size() == 0) {
@@ -574,6 +595,7 @@ public class FpdFrameworkModules extends IInternalFrame { if (arch == null) {
// if no arch specified in ModuleSA
fpdMsa.remove(mg + mv + pg + pv);
+
} else {
ArrayList<String> al = fpdMsa.get(mg + mv + pg + pv);
al.remove(arch);
@@ -648,7 +670,7 @@ public class FpdFrameworkModules extends IInternalFrame { row[typeColForFpdModTable] = mi.getModuleType();
row[pkgNameColForFpdModTable] = mi.getPackage().getName();
row[pkgVerColForFpdModTable] = mi.getPackage().getVersion();
- row[archColForFpdModTable] = saa[i][4];
+ row[archColForFpdModTable] = saa[i][ffcModArch];
try {
row[pathColForFpdModTable] = GlobalData.getMsaFile(mi).getPath().substring(
System.getenv("WORKSPACE")
@@ -656,15 +678,18 @@ public class FpdFrameworkModules extends IInternalFrame { } catch (Exception e) {
JOptionPane.showMessageDialog(frame, "Show FPD Modules:" + e.getMessage());
}
+
+ modelFpdModules.addRow(row);
+ String fpdMsaKey = saa[i][ffcModGuid] + row[modVerColForFpdModTable]
+ + saa[i][ffcPkgGuid] + row[pkgVerColForFpdModTable];
+ ArrayList<String> al = fpdMsa.get(fpdMsaKey);
+ if (al == null) {
+ al = new ArrayList<String>();
+ fpdMsa.put(fpdMsaKey, al);
+ }
+ al.add(saa[i][ffcModArch]);
}
- modelFpdModules.addRow(row);
- ArrayList<String> al = fpdMsa.get(saa[i][ffcModGuid] + saa[i][ffcModVer]
- + saa[i][ffcPkgGuid] + saa[i][ffcPkgVer]);
- if (al == null) {
- al = new ArrayList<String>();
- fpdMsa.put(saa[i][ffcModGuid] + saa[i][ffcModVer] + saa[i][ffcPkgGuid] + saa[i][ffcPkgVer], al);
- }
- al.add(saa[i][ffcModArch]);
+
}
TableSorter sorter = (TableSorter)jTableFpdModules.getModel();
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdModuleSA.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdModuleSA.java index 0ab921b..27533b4 100644 --- a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdModuleSA.java +++ b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdModuleSA.java @@ -1086,6 +1086,7 @@ public class FpdModuleSA extends JDialog implements ActionListener { jLabelFfsFileGuid = new JLabel();
jLabelFfsFileGuid.setText("FFS File GUID");
jLabelFfsFileGuid.setPreferredSize(new java.awt.Dimension(90,16));
+ jLabelFfsFileGuid.setVisible(false);
jLabelFvBinding = new JLabel();
jLabelFvBinding.setText("FV Binding");
jLabelFvBinding.setPreferredSize(new java.awt.Dimension(90,16));
@@ -1145,6 +1146,7 @@ public class FpdModuleSA extends JDialog implements ActionListener { if (jTextFieldFileGuid == null) {
jTextFieldFileGuid = new JTextField();
jTextFieldFileGuid.setPreferredSize(new java.awt.Dimension(300,20));
+ jTextFieldFileGuid.setVisible(false);
jTextFieldFileGuid.addFocusListener(new java.awt.event.FocusAdapter() {
public void focusLost(java.awt.event.FocusEvent e) {
String originalFileGuid = ffc.getFfsFileNameGuid(moduleKey);
|