mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-26 23:24:03 +02:00
add ForceDebug column to FramworkModules table.
comment out reference to unchecked in code in FrameworkWizardUI.java. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1341 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
d78abb5a95
commit
e7cc0547dd
@ -54,7 +54,7 @@ import org.tianocore.frameworkwizard.common.Identifications.Identification;
|
|||||||
import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;
|
import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;
|
||||||
import org.tianocore.frameworkwizard.common.Identifications.OpeningPackageType;
|
import org.tianocore.frameworkwizard.common.Identifications.OpeningPackageType;
|
||||||
import org.tianocore.frameworkwizard.common.Identifications.OpeningPlatformType;
|
import org.tianocore.frameworkwizard.common.Identifications.OpeningPlatformType;
|
||||||
import org.tianocore.frameworkwizard.common.find.FindPPIsResult;
|
//import org.tianocore.frameworkwizard.common.find.FindPPIsResult;
|
||||||
import org.tianocore.frameworkwizard.common.ui.IDefaultMutableTreeNode;
|
import org.tianocore.frameworkwizard.common.ui.IDefaultMutableTreeNode;
|
||||||
import org.tianocore.frameworkwizard.common.ui.IDesktopManager;
|
import org.tianocore.frameworkwizard.common.ui.IDesktopManager;
|
||||||
import org.tianocore.frameworkwizard.common.ui.IFrame;
|
import org.tianocore.frameworkwizard.common.ui.IFrame;
|
||||||
@ -1878,7 +1878,7 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (arg0.getSource() == this.jMenuItemEditFindPpi) {
|
if (arg0.getSource() == this.jMenuItemEditFindPpi) {
|
||||||
this.findPpi();
|
// this.findPpi();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (arg0.getSource() == this.jMenuItemProjectChangeWorkspace) {
|
if (arg0.getSource() == this.jMenuItemProjectChangeWorkspace) {
|
||||||
@ -3099,10 +3099,10 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele
|
|||||||
To find all defined PPIs in workspace
|
To find all defined PPIs in workspace
|
||||||
|
|
||||||
**/
|
**/
|
||||||
private void findPpi() {
|
// private void findPpi() {
|
||||||
//FindPPIsResult fpr = FindPPIsResult.getInstance();
|
// FindPPIsResult fpr = FindPPIsResult.getInstance();
|
||||||
//fpr.setVisible(true);
|
// fpr.setVisible(true);
|
||||||
}
|
// }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Switch current workspace to others
|
Switch current workspace to others
|
||||||
|
@ -797,6 +797,19 @@ public class FpdFileContents {
|
|||||||
msa.getModuleSaBuildOptions().setFfsFormatKey(ffsKey);
|
msa.getModuleSaBuildOptions().setFfsFormatKey(ffsKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setModuleSAForceDebug(int i, boolean dbgEnable) {
|
||||||
|
ModuleSADocument.ModuleSA moduleSa = getModuleSA(i);
|
||||||
|
moduleSa.setForceDebug(dbgEnable);
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean getModuleSAForceDebug (int i) {
|
||||||
|
ModuleSADocument.ModuleSA moduleSa = getModuleSA(i);
|
||||||
|
if (moduleSa.getForceDebug() == true) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
public void getModuleSAOptions(String moduleKey, String[][] saa) {
|
public void getModuleSAOptions(String moduleKey, String[][] saa) {
|
||||||
ModuleSADocument.ModuleSA msa = getModuleSA(moduleKey);
|
ModuleSADocument.ModuleSA msa = getModuleSA(moduleKey);
|
||||||
if (msa == null || msa.getModuleSaBuildOptions() == null || msa.getModuleSaBuildOptions().getOptions() == null
|
if (msa == null || msa.getModuleSaBuildOptions() == null || msa.getModuleSaBuildOptions().getOptions() == null
|
||||||
|
@ -25,7 +25,9 @@ import javax.swing.JScrollPane;
|
|||||||
import javax.swing.JTable;
|
import javax.swing.JTable;
|
||||||
import javax.swing.JButton;
|
import javax.swing.JButton;
|
||||||
import javax.swing.ListSelectionModel;
|
import javax.swing.ListSelectionModel;
|
||||||
|
import javax.swing.event.TableModelEvent;
|
||||||
import javax.swing.table.DefaultTableModel;
|
import javax.swing.table.DefaultTableModel;
|
||||||
|
import javax.swing.table.TableModel;
|
||||||
|
|
||||||
import org.tianocore.PlatformSurfaceAreaDocument;
|
import org.tianocore.PlatformSurfaceAreaDocument;
|
||||||
import org.tianocore.frameworkwizard.common.Identifications.OpeningPlatformType;
|
import org.tianocore.frameworkwizard.common.Identifications.OpeningPlatformType;
|
||||||
@ -529,10 +531,26 @@ public class FpdFrameworkModules extends IInternalFrame {
|
|||||||
jTableFpdModules.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
|
jTableFpdModules.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
|
||||||
jTableFpdModules.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
|
jTableFpdModules.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
|
||||||
|
|
||||||
|
jTableFpdModules.getModel().addTableModelListener(this);
|
||||||
}
|
}
|
||||||
return jTableFpdModules;
|
return jTableFpdModules;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void tableChanged(TableModelEvent arg0) {
|
||||||
|
if (arg0.getType() == TableModelEvent.UPDATE){
|
||||||
|
int row = arg0.getFirstRow();
|
||||||
|
int column = arg0.getColumn();
|
||||||
|
TableModel m = (TableModel)arg0.getSource();
|
||||||
|
|
||||||
|
if (column != forceDbgColForFpdModTable) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
String s = m.getValueAt(row, column)+"";
|
||||||
|
boolean dbgEnable = new Boolean(s);
|
||||||
|
ffc.setModuleSAForceDebug(row, dbgEnable);
|
||||||
|
docConsole.setSaved(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* This method initializes jButtonSettings
|
* This method initializes jButtonSettings
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user