mirror of https://github.com/acidanthera/audk.git
Remove empty attributes for build option.
Fix keyboard tying search wrong-focus in FrameworkModules table. Make FvBinding text field editable. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1640 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
72a4deab42
commit
9babb67e68
|
@ -1864,7 +1864,7 @@ public class FpdBuildOptions extends IInternalFrame {
|
|||
if (bool[5]) {
|
||||
s += "PPC ";
|
||||
}
|
||||
if (s == " ") {
|
||||
if (s.equals(" ")) {
|
||||
s += "IA32";
|
||||
}
|
||||
return s.trim();
|
||||
|
|
|
@ -2135,11 +2135,42 @@ public class FpdFileContents {
|
|||
|
||||
private void setBuildOptionsOpt(Vector<Object> buildTargets, String toolChain, String tagName, String toolCmd, Vector<Object> archList, String contents, OptionDocument.Option opt){
|
||||
opt.setStringValue(contents);
|
||||
if (buildTargets != null) {
|
||||
opt.setBuildTargets(buildTargets);
|
||||
}
|
||||
else {
|
||||
if (opt.isSetBuildTargets()) {
|
||||
opt.unsetBuildTargets();
|
||||
}
|
||||
}
|
||||
|
||||
if (toolChain != null && toolChain.length() > 0) {
|
||||
opt.setToolChainFamily(toolChain);
|
||||
}
|
||||
else {
|
||||
if (opt.isSetToolChainFamily()) {
|
||||
opt.unsetToolChainFamily();
|
||||
}
|
||||
}
|
||||
|
||||
if (tagName != null && tagName.length() > 0) {
|
||||
opt.setTagName(tagName);
|
||||
}
|
||||
else {
|
||||
if (opt.isSetTagName()) {
|
||||
opt.unsetTagName();
|
||||
}
|
||||
}
|
||||
|
||||
if (toolCmd != null && toolCmd.length() > 0) {
|
||||
opt.setToolCode(toolCmd);
|
||||
}
|
||||
else {
|
||||
if (opt.isSetToolCode()) {
|
||||
opt.unsetToolCode();
|
||||
}
|
||||
}
|
||||
|
||||
opt.setBuildTargets(buildTargets);
|
||||
opt.setToolChainFamily(toolChain);
|
||||
opt.setTagName(tagName);
|
||||
opt.setToolCode(toolCmd);
|
||||
|
||||
if (archList != null) {
|
||||
opt.setSupArchList(archList);
|
||||
|
|
|
@ -53,7 +53,7 @@ public class FpdFrameworkModules extends IInternalFrame {
|
|||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private static final int timeToWait = 3000;
|
||||
private static final int timeToWait = 2000;
|
||||
|
||||
private long savedMs = 0;
|
||||
|
||||
|
@ -340,7 +340,7 @@ public class FpdFrameworkModules extends IInternalFrame {
|
|||
searchField = "" + e.getKeyChar();
|
||||
}
|
||||
|
||||
int viewIndex = gotoFoundRow (searchField, (TableSorter) jTableAllModules.getModel());
|
||||
int viewIndex = gotoFoundRow (searchField, jTableAllModules);
|
||||
if (viewIndex >= 0){
|
||||
jTableAllModules.changeSelection(viewIndex, 0, false, false);
|
||||
}
|
||||
|
@ -353,10 +353,10 @@ public class FpdFrameworkModules extends IInternalFrame {
|
|||
return jTableAllModules;
|
||||
}
|
||||
|
||||
private int gotoFoundRow (String s, TableSorter model) {
|
||||
private int gotoFoundRow (String s, JTable model) {
|
||||
for (int i = 0; i < model.getRowCount(); ++i) {
|
||||
if (model.getValueAt(i, 0) != null && model.getValueAt(i, 0).toString().regionMatches(true, 0, s, 0, s.length())) {
|
||||
return model.getViewIndexArray()[i];
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
|
@ -631,7 +631,7 @@ public class FpdFrameworkModules extends IInternalFrame {
|
|||
searchField = "" + e.getKeyChar();
|
||||
}
|
||||
|
||||
int viewIndex = gotoFoundRow (searchField, (TableSorter) jTableFpdModules.getModel());
|
||||
int viewIndex = gotoFoundRow (searchField, jTableFpdModules);
|
||||
if (viewIndex >= 0){
|
||||
jTableFpdModules.changeSelection(viewIndex, 0, false, false);
|
||||
}
|
||||
|
|
|
@ -1126,7 +1126,7 @@ public class FpdModuleSA extends JDialog implements ActionListener {
|
|||
if (jTextFieldFvBinding == null) {
|
||||
jTextFieldFvBinding = new JTextField();
|
||||
jTextFieldFvBinding.setPreferredSize(new java.awt.Dimension(400,20));
|
||||
jTextFieldFvBinding.setEditable(false);
|
||||
jTextFieldFvBinding.setEditable(true);
|
||||
jTextFieldFvBinding.addFocusListener(new java.awt.event.FocusAdapter() {
|
||||
public void focusLost(java.awt.event.FocusEvent e) {
|
||||
String originalFvBinding = ffc.getFvBinding(moduleKey);
|
||||
|
|
Loading…
Reference in New Issue