X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Tools%2FSource%2FFrameworkWizard%2Fsrc%2Forg%2Ftianocore%2Fframeworkwizard%2FToolChainConfig.java;h=2e3d7e9d604e988f47ad5b769ceb60a27fc381c5;hb=8de0094c045201cf92891ef78df2761cf47a6fca;hp=ce3f96c91c64b5f1af53ae29967efa1c602c1681;hpb=55a2762d8c1fe0291903f5015e11fd29b913f2b6;p=mirror_edk2.git diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/ToolChainConfig.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/ToolChainConfig.java index ce3f96c91c..2e3d7e9d60 100644 --- a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/ToolChainConfig.java +++ b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/ToolChainConfig.java @@ -138,7 +138,7 @@ public class ToolChainConfig extends IFrame implements ListSelectionListener, Ta if (jButtonOpen == null) { jButtonOpen = new JButton(); jButtonOpen.setBounds(new java.awt.Rectangle(40, 405, 120, 20)); - jButtonOpen.setText("Open a file"); + jButtonOpen.setText("Open File"); jButtonOpen.addActionListener(this); } return jButtonOpen; @@ -154,7 +154,7 @@ public class ToolChainConfig extends IFrame implements ListSelectionListener, Ta if (jButtonSave == null) { jButtonSave = new JButton(); jButtonSave.setBounds(new java.awt.Rectangle(170, 405, 120, 20)); - jButtonSave.setText("Save to a file"); + jButtonSave.setText("Save File"); jButtonSave.addActionListener(this); } return jButtonSave; @@ -300,7 +300,7 @@ public class ToolChainConfig extends IFrame implements ListSelectionListener, Ta e.printStackTrace(); } } else { - Log.log("Open file", this.currentFile + " Not Found"); + Log.log("File Open Error: ", this.currentFile + " File Not Found"); } showTable(); @@ -362,8 +362,8 @@ public class ToolChainConfig extends IFrame implements ListSelectionListener, Ta currentFile = fc.getSelectedFile().getPath(); this.setTitle("Tool Chain Configuration" + " [" + currentFile + "]"); } catch (IOException e) { + Log.wrn(this.currentFile + "Read Error", e.getMessage()); Log.err(this.currentFile + "Read Error", e.getMessage()); - e.printStackTrace(); return; } this.showTable(); @@ -383,8 +383,8 @@ public class ToolChainConfig extends IFrame implements ListSelectionListener, Ta try { vtcc.saveFile(currentFile); } catch (IOException e) { + Log.wrn(this.currentFile + "Write Error", e.getMessage()); Log.err(this.currentFile + "Write Error", e.getMessage()); - e.printStackTrace(); return; } } @@ -452,12 +452,12 @@ public class ToolChainConfig extends IFrame implements ListSelectionListener, Ta **/ private boolean check() { if (isEmpty(this.jTextFieldName.getText())) { - Log.err("Add Tool Chain", "Name couldn't be empty!"); + Log.wrn("Add Tool Chain", "The Property Name must be entered!"); return false; } if (isEmpty(this.jTextFieldValue.getText())) { - Log.err("Add Tool Chain", "Value couldn't be empty"); + Log.wrn("Add Tool Chain", "The Property Value must be entered!"); return false; } return true;