mirror of https://github.com/rusefi/RomRaider.git
updated ramtune test app
git-svn-id: http://svn.3splooges.com/romraider-arch/trunk@646 d2e2e1cd-ba16-0410-be16-b7c4453c7c2d
This commit is contained in:
parent
123d78f804
commit
a602287418
|
@ -24,6 +24,8 @@ import javax.swing.JComboBox;
|
|||
import javax.swing.JComponent;
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JLabel;
|
||||
import static javax.swing.JOptionPane.WARNING_MESSAGE;
|
||||
import static javax.swing.JOptionPane.YES_NO_OPTION;
|
||||
import static javax.swing.JOptionPane.YES_OPTION;
|
||||
import static javax.swing.JOptionPane.showConfirmDialog;
|
||||
import javax.swing.JPanel;
|
||||
|
@ -211,7 +213,8 @@ public final class RamTuneTestApp extends JFrame implements WindowListener {
|
|||
|
||||
private boolean confirmCommandExecution(CommandGenerator commandGenerator) {
|
||||
boolean isWriteCommandGenerator = WriteCommandGenerator.class.isAssignableFrom(commandGenerator.getClass());
|
||||
return !isWriteCommandGenerator || showConfirmDialog(null, "Are you sure you want to write to ECU memory?") == YES_OPTION;
|
||||
return !isWriteCommandGenerator || showConfirmDialog(this, "Are you sure you want to write to ECU memory?",
|
||||
"Confirm Write Command", YES_NO_OPTION, WARNING_MESSAGE) == YES_OPTION;
|
||||
}
|
||||
|
||||
private JComponent buildStatusBar() {
|
||||
|
@ -265,6 +268,7 @@ public final class RamTuneTestApp extends JFrame implements WindowListener {
|
|||
responseField.append("ERROR: ");
|
||||
responseField.append(writer.toString());
|
||||
responseField.append("\n**************************************************************************\n\n");
|
||||
//showMessageDialog(this, "An error occurred:\n\n" + writer.toString(), "Error", JOptionPane.ERROR_MESSAGE);
|
||||
}
|
||||
|
||||
public void windowOpened(WindowEvent e) {
|
||||
|
|
Loading…
Reference in New Issue