mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-24 06:04:52 +02:00
1. Fix EDKT214 "Framework Wizard is not synchronized with FrameworkDatabase.db when install FAR"
2. Remove some unused code from some files. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1420 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
36dbf7f648
commit
ff383de448
@ -1828,6 +1828,7 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
|
|||||||
|
|
||||||
if (arg0.getSource() == this.jMenuItemFileCloseAll) {
|
if (arg0.getSource() == this.jMenuItemFileCloseAll) {
|
||||||
this.closeAll();
|
this.closeAll();
|
||||||
|
this.makeEmptyTree();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (arg0.getSource() == this.jMenuItemFileSave) {
|
if (arg0.getSource() == this.jMenuItemFileSave) {
|
||||||
@ -3002,7 +3003,14 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
|
|||||||
GlobalData.openingModuleList.closeAll();
|
GlobalData.openingModuleList.closeAll();
|
||||||
GlobalData.openingPackageList.closeAll();
|
GlobalData.openingPackageList.closeAll();
|
||||||
GlobalData.openingPlatformList.closeAll();
|
GlobalData.openingPlatformList.closeAll();
|
||||||
this.makeEmptyTree();
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Refresh all global data from disk to memory
|
||||||
|
|
||||||
|
**/
|
||||||
|
private void refresh() {
|
||||||
|
GlobalData.init();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -3190,6 +3198,8 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
|
|||||||
JOptionPane.showConfirmDialog(null, strReturn, "Done", JOptionPane.DEFAULT_OPTION,
|
JOptionPane.showConfirmDialog(null, strReturn, "Done", JOptionPane.DEFAULT_OPTION,
|
||||||
JOptionPane.INFORMATION_MESSAGE);
|
JOptionPane.INFORMATION_MESSAGE);
|
||||||
this.closeAll();
|
this.closeAll();
|
||||||
|
this.refresh();
|
||||||
|
this.makeEmptyTree();
|
||||||
}
|
}
|
||||||
iso.dispose();
|
iso.dispose();
|
||||||
}
|
}
|
||||||
@ -3206,6 +3216,8 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
|
|||||||
JOptionPane.showConfirmDialog(null, strReturn, "Done", JOptionPane.DEFAULT_OPTION,
|
JOptionPane.showConfirmDialog(null, strReturn, "Done", JOptionPane.DEFAULT_OPTION,
|
||||||
JOptionPane.INFORMATION_MESSAGE);
|
JOptionPane.INFORMATION_MESSAGE);
|
||||||
this.closeAll();
|
this.closeAll();
|
||||||
|
this.refresh();
|
||||||
|
this.makeEmptyTree();
|
||||||
}
|
}
|
||||||
dso.dispose();
|
dso.dispose();
|
||||||
}
|
}
|
||||||
@ -3222,6 +3234,8 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
|
|||||||
JOptionPane.showConfirmDialog(null, strReturn, "Done", JOptionPane.DEFAULT_OPTION,
|
JOptionPane.showConfirmDialog(null, strReturn, "Done", JOptionPane.DEFAULT_OPTION,
|
||||||
JOptionPane.INFORMATION_MESSAGE);
|
JOptionPane.INFORMATION_MESSAGE);
|
||||||
this.closeAll();
|
this.closeAll();
|
||||||
|
this.refresh();
|
||||||
|
this.makeEmptyTree();
|
||||||
}
|
}
|
||||||
uso.dispose();
|
uso.dispose();
|
||||||
}
|
}
|
||||||
|
@ -128,14 +128,8 @@ public class SpdHeader extends IInternalFrame {
|
|||||||
|
|
||||||
private JTextArea jDescriptionTextArea = null;
|
private JTextArea jDescriptionTextArea = null;
|
||||||
|
|
||||||
// private JLabel jLabelSpecification = null;
|
|
||||||
|
|
||||||
private JTextField jSpecificationTextField = null;
|
private JTextField jSpecificationTextField = null;
|
||||||
|
|
||||||
private JButton jButtonOk = null;
|
|
||||||
|
|
||||||
private JButton jButtonCancel = null;
|
|
||||||
|
|
||||||
private JScrollPane jLicenseScrollPane = null;
|
private JScrollPane jLicenseScrollPane = null;
|
||||||
|
|
||||||
private JScrollPane jDescriptionScrollPane = null;
|
private JScrollPane jDescriptionScrollPane = null;
|
||||||
@ -361,40 +355,6 @@ public class SpdHeader extends IInternalFrame {
|
|||||||
return jSpecificationTextField;
|
return jSpecificationTextField;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
This method initializes jButtonOk
|
|
||||||
|
|
||||||
@return javax.swing.JButton jButtonOk
|
|
||||||
|
|
||||||
**/
|
|
||||||
private JButton getJButtonOk() {
|
|
||||||
if (jButtonOk == null) {
|
|
||||||
jButtonOk = new JButton();
|
|
||||||
jButtonOk.setText("OK");
|
|
||||||
jButtonOk.setBounds(new java.awt.Rectangle(290, 445, 90, oneRowHeight));
|
|
||||||
jButtonOk.setVisible(false);
|
|
||||||
jButtonOk.addActionListener(this);
|
|
||||||
}
|
|
||||||
return jButtonOk;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
This method initializes jButtonCancel
|
|
||||||
|
|
||||||
@return javax.swing.JButton jButtonCancel
|
|
||||||
|
|
||||||
**/
|
|
||||||
private JButton getJButtonCancel() {
|
|
||||||
if (jButtonCancel == null) {
|
|
||||||
jButtonCancel = new JButton();
|
|
||||||
jButtonCancel.setText("Cancel");
|
|
||||||
jButtonCancel.setBounds(new java.awt.Rectangle(390, 445, 90, oneRowHeight));
|
|
||||||
jButtonCancel.setVisible(false);
|
|
||||||
jButtonCancel.addActionListener(this);
|
|
||||||
}
|
|
||||||
return jButtonCancel;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This method initializes jLicenseScrollPane
|
This method initializes jLicenseScrollPane
|
||||||
|
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
package org.tianocore.frameworkwizard.platform.ui;
|
package org.tianocore.frameworkwizard.platform.ui;
|
||||||
|
|
||||||
import java.awt.BorderLayout;
|
import java.awt.BorderLayout;
|
||||||
import javax.swing.BoxLayout;
|
|
||||||
|
|
||||||
import javax.swing.JPanel;
|
import javax.swing.JPanel;
|
||||||
import javax.swing.JTabbedPane;
|
import javax.swing.JTabbedPane;
|
||||||
@ -49,7 +48,6 @@ import org.tianocore.PlatformSurfaceAreaDocument;
|
|||||||
import org.tianocore.frameworkwizard.common.DataValidation;
|
import org.tianocore.frameworkwizard.common.DataValidation;
|
||||||
import org.tianocore.frameworkwizard.common.Identifications.OpeningPlatformType;
|
import org.tianocore.frameworkwizard.common.Identifications.OpeningPlatformType;
|
||||||
import org.tianocore.frameworkwizard.common.ui.IInternalFrame;
|
import org.tianocore.frameworkwizard.common.ui.IInternalFrame;
|
||||||
import org.tianocore.frameworkwizard.common.ui.ArchCheckBox;
|
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@ -66,8 +64,6 @@ public class FpdBuildOptions extends IInternalFrame {
|
|||||||
|
|
||||||
private final int twoRowHeight = 40;
|
private final int twoRowHeight = 40;
|
||||||
|
|
||||||
private final int threeRowHeight = 60;
|
|
||||||
|
|
||||||
private final int sepHeight = 6;
|
private final int sepHeight = 6;
|
||||||
|
|
||||||
private final int sepWidth = 10;
|
private final int sepWidth = 10;
|
||||||
@ -100,8 +96,6 @@ public class FpdBuildOptions extends IInternalFrame {
|
|||||||
|
|
||||||
private final int firstButtonLoc = next2LastButtonLoc - buttonWidth - sepWidth;
|
private final int firstButtonLoc = next2LastButtonLoc - buttonWidth - sepWidth;
|
||||||
|
|
||||||
private final int starColumn = 2;
|
|
||||||
|
|
||||||
private final int labelColumn = 12;
|
private final int labelColumn = 12;
|
||||||
|
|
||||||
private final int fieldColumn = 168;
|
private final int fieldColumn = 168;
|
||||||
|
@ -42,7 +42,6 @@ import org.tianocore.frameworkwizard.workspace.Workspace;
|
|||||||
import org.tianocore.frameworkwizard.workspace.WorkspaceTools;
|
import org.tianocore.frameworkwizard.workspace.WorkspaceTools;
|
||||||
import org.tianocore.frameworkwizard.platform.PlatformIdentification;
|
import org.tianocore.frameworkwizard.platform.PlatformIdentification;
|
||||||
import org.tianocore.PlatformSurfaceAreaDocument;
|
import org.tianocore.PlatformSurfaceAreaDocument;
|
||||||
import org.tianocore.frameworkwizard.toolchain.ToolChainId;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The class is used to update the target.txt file.
|
* The class is used to update the target.txt file.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user