summaryrefslogtreecommitdiff
path: root/Tools/Source/FrameworkWizard
diff options
context:
space:
mode:
authorjlin16 <jlin16@6f19259b-4bc3-4df7-8a09-765794883524>2006-08-29 09:18:39 +0000
committerjlin16 <jlin16@6f19259b-4bc3-4df7-8a09-765794883524>2006-08-29 09:18:39 +0000
commita094728fa731f5b846163b4a57ca53dbe20e520c (patch)
tree859b3c10e91224885e93ca7fb0d7e6b05a688a8d /Tools/Source/FrameworkWizard
parentc60019f637b21263c1e3063c41a5bc59cd26a8d8 (diff)
downloadedk2-a094728fa731f5b846163b4a57ca53dbe20e520c.zip
edk2-a094728fa731f5b846163b4a57ca53dbe20e520c.tar.gz
edk2-a094728fa731f5b846163b4a57ca53dbe20e520c.tar.bz2
rearrange target of procedures of library instance selection.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1402 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Source/FrameworkWizard')
-rw-r--r--Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFileContents.java17
-rw-r--r--Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdModuleSA.java32
2 files changed, 24 insertions, 25 deletions
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFileContents.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFileContents.java
index 07980d7..0897ac0 100644
--- a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFileContents.java
+++ b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFileContents.java
@@ -631,25 +631,18 @@ public class FpdFileContents {
if (moduleSA.getPcdBuildDefinition() != null) {
XmlCursor cursor = moduleSA.getPcdBuildDefinition().newCursor();
if (cursor.toFirstChild()) {
- PcdBuildDefinitionDocument.PcdBuildDefinition.PcdData pcdData = (PcdBuildDefinitionDocument.PcdBuildDefinition.PcdData) cursor
- .getObject();
- if (msaPcd.getCName().equals(pcdData.getCName())
- && msaPcd.getTokenSpaceGuidCName().equals(pcdData.getTokenSpaceGuidCName())) {
-
- maintainDynPcdMap(pcdData.getCName() + " " + pcdData.getTokenSpaceGuidCName(), moduleKey);
- cursor.removeXml();
- break;
- }
- while (cursor.toNextSibling()) {
- pcdData = (PcdBuildDefinitionDocument.PcdBuildDefinition.PcdData) cursor.getObject();
+ do {
+ PcdBuildDefinitionDocument.PcdBuildDefinition.PcdData pcdData = (PcdBuildDefinitionDocument.PcdBuildDefinition.PcdData) cursor
+ .getObject();
if (msaPcd.getCName().equals(pcdData.getCName())
&& msaPcd.getTokenSpaceGuidCName().equals(pcdData.getTokenSpaceGuidCName())) {
+
maintainDynPcdMap(pcdData.getCName() + " " + pcdData.getTokenSpaceGuidCName(),
moduleKey);
cursor.removeXml();
break;
}
- }
+ } while (cursor.toNextSibling());
}
cursor.dispose();
}
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 ef185b1..b6c92d6 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
@@ -192,10 +192,9 @@ public class FpdModuleSA extends JDialog implements ActionListener {
resolveLibraryInstances(saa[i][1] + " " + saa[i][2] + " " + saa[i][3] + " " + saa[i][4]);
selectedInstancesTableModel.addRow(saa[i]);
}
-
-
}
}
+ showClassToResolved();
}
public void initFvInfo (String key) {
@@ -286,7 +285,7 @@ public class FpdModuleSA extends JDialog implements ActionListener {
}
- showClassToResolved();
+// showClassToResolved();
}
catch(Exception e) {
e.printStackTrace();
@@ -418,6 +417,21 @@ public class FpdModuleSA extends JDialog implements ActionListener {
}
libInstanceTableModel.setRowCount(0);
}
+
+ private void addLibInstance (ModuleIdentification libMi) {
+
+ ffc.genLibraryInstance(libMi, moduleKey);
+ //
+ // Add pcd information of selected instance to current moduleSA
+ //
+ try{
+ ffc.addFrameworkModulesPcdBuildDefs(libMi, null, ffc.getModuleSA(moduleKey));
+ }
+ catch (Exception exception) {
+ JOptionPane.showMessageDialog(frame, "Adding Instance" + libMi.getName() + ": "+ exception.getMessage());
+ }
+
+ }
/**
* This method initializes this
*
@@ -994,17 +1008,9 @@ public class FpdModuleSA extends JDialog implements ActionListener {
libInstanceTableModel.getValueAt(row, 3) + " " +
libInstanceTableModel.getValueAt(row, 4);
ModuleIdentification libMi = WorkspaceProfile.getModuleId(instanceValue);
- ffc.genLibraryInstance(libMi, moduleKey);
- //
- // Add pcd information of selected instance to current moduleSA
- //
- try{
- ffc.addFrameworkModulesPcdBuildDefs(libMi, null, ffc.getModuleSA(moduleKey));
- }
- catch (Exception exception) {
- JOptionPane.showMessageDialog(frame, "Adding Instance" + s[0] + ": "+ exception.getMessage());
- }
+ addLibInstance (libMi);
resolveLibraryInstances(instanceValue);
+ showClassToResolved();
}
});
}