diff options
author | hche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-01-30 01:31:32 +0000 |
---|---|---|
committer | hche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-01-30 01:31:32 +0000 |
commit | e2249194ac9b490a94b5a19f8aaab645e8443409 (patch) | |
tree | c73b553d41d0ff00ace227ff529c393931c3659e /Tools | |
parent | 963cbacb5f911b31b0ea4c9610750c4b20ba14f3 (diff) | |
download | edk2-e2249194ac9b490a94b5a19f8aaab645e8443409.tar.gz edk2-e2249194ac9b490a94b5a19f8aaab645e8443409.tar.bz2 edk2-e2249194ac9b490a94b5a19f8aaab645e8443409.zip |
1. Fix EDKT215: [Wizard] "Previous" button is not supported in step 4 of Create FAR
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2333 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools')
2 files changed, 6 insertions, 30 deletions
diff --git a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/far/createui/CreateStepFour.java b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/far/createui/CreateStepFour.java index 3d3fdde2e9..ab2ffd07ee 100644 --- a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/far/createui/CreateStepFour.java +++ b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/far/createui/CreateStepFour.java @@ -174,7 +174,7 @@ public class CreateStepFour extends IDialog implements MouseListener { jButtonPrevious.setBounds(new java.awt.Rectangle(370, 330, 90, 20));
jButtonPrevious.setText("Previous");
jButtonPrevious.addMouseListener(this);
- jButtonPrevious.setVisible(false);
+ jButtonPrevious.setVisible(true);
}
return jButtonPrevious;
}
@@ -260,9 +260,6 @@ public class CreateStepFour extends IDialog implements MouseListener { getPreviousStep().dispose();
this.setVisible(false);
this.dispose();
- } else if (e.getSource() == jButtonPrevious) {
- stepThree.setVisible(true);
- this.setVisible(false);
} else if (e.getSource() == jButtonBrowser) {
JFileChooser fc = new JFileChooser();
fc.setAcceptAllFileFilterUsed(false);
@@ -274,6 +271,9 @@ public class CreateStepFour extends IDialog implements MouseListener { this.jTextFieldSaveToFile.setText(Tools.addPathExt(fc.getSelectedFile().getPath(),
DataType.RETURN_TYPE_FAR_SURFACE_AREA));
}
+ } else if (e.getSource() == jButtonPrevious) {
+ this.setVisible(false);
+ stepThree.setVisible(true);
}
}
@@ -301,29 +301,6 @@ public class CreateStepFour extends IDialog implements MouseListener { return stepThree;
}
- /**
- * This method initializes jTable
- *
- * @return javax.swing.JTable
- */
- // private JTable getJTable() {
- // if (jTable == null) {
- // jTable = new JTable();
- // model = new PartialTableModel();
- // jTable = new JTable(model);
- // jTable.setRowHeight(20);
- // jTable.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);
- // model.addColumn("GUID");
- // model.addColumn("Version");
- // model.addColumn("Name");
- //
- // jTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
- // }
- // if (this.stepThree != null) {
- // prepareTable();
- // }
- // return jTable;
- // }
public void prepareTable() {
model.setRowCount(0);
diff --git a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/far/createui/CreateStepThree.java b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/far/createui/CreateStepThree.java index 1e95cc35ff..666082d3d4 100644 --- a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/far/createui/CreateStepThree.java +++ b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/far/createui/CreateStepThree.java @@ -237,11 +237,10 @@ public class CreateStepThree extends IDialog implements MouseListener { if (stepFour == null) {
stepFour = new CreateStepFour(this, true, this);
- stepFour.setVisible(true);
- } else {
- stepFour.setVisible(true);
}
+
this.setVisible(false);
+ stepFour.setVisible(true);
} else if (e.getSource() == jButtonPrevious) {
this.setVisible(false);
stepTwo.setVisible(true);
|