mirror of https://github.com/rusefi/RomRaider.git
Minor corrections after some real ECU testing. I think the MTS DLL is crashing Java on RomRaider exit. May have to switch back to non-event driven query handling.
git-svn-id: https://svn2.assembla.com/svn/romraider/trunk@352 38686702-15cf-42e4-a595-3071df8bf5ea
This commit is contained in:
parent
75d1a7afa3
commit
0ee6bc1031
1072
logger.xml
1072
logger.xml
File diff suppressed because it is too large
Load Diff
|
@ -772,11 +772,13 @@ public final class EcuLogger extends AbstractFrame implements MessageListener {
|
|||
private void clearAllSelectedParameters(ParameterListTableModel paramListTableModel) {
|
||||
List<ParameterRow> rows = paramListTableModel.getParameterRows();
|
||||
for (ParameterRow row : rows) {
|
||||
LoggerData loggerData = row.getLoggerData();
|
||||
if (loggerData.isSelected() && row.isSelected()) {
|
||||
paramListTableModel.selectParam(loggerData, false);
|
||||
if (row.isSelected()) {
|
||||
row.getLoggerData().setSelected(false);
|
||||
row.setSelected(false);
|
||||
paramListTableModel.selectParam(row.getLoggerData(), false);
|
||||
}
|
||||
}
|
||||
paramListTableModel.fireTableDataChanged();
|
||||
}
|
||||
|
||||
private JButton buildUnselectAllButton() {
|
||||
|
@ -797,15 +799,23 @@ public final class EcuLogger extends AbstractFrame implements MessageListener {
|
|||
private static final long serialVersionUID = 723232894767995265L;
|
||||
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
clearAllSelectedParameters(dataTabParamListTableModel);
|
||||
clearAllSelectedParameters(dataTabSwitchListTableModel);
|
||||
clearAllSelectedParameters(dataTabExternalListTableModel);
|
||||
clearAllSelectedParameters(graphTabParamListTableModel);
|
||||
clearAllSelectedParameters(graphTabSwitchListTableModel);
|
||||
clearAllSelectedParameters(graphTabExternalListTableModel);
|
||||
clearAllSelectedParameters(dashboardTabParamListTableModel);
|
||||
clearAllSelectedParameters(dashboardTabSwitchListTableModel);
|
||||
clearAllSelectedParameters(dashboardTabExternalListTableModel);
|
||||
try {
|
||||
clearAllSelectedParameters(dataTabParamListTableModel);
|
||||
clearAllSelectedParameters(dataTabSwitchListTableModel);
|
||||
clearAllSelectedParameters(dataTabExternalListTableModel);
|
||||
clearAllSelectedParameters(graphTabParamListTableModel);
|
||||
clearAllSelectedParameters(graphTabSwitchListTableModel);
|
||||
clearAllSelectedParameters(graphTabExternalListTableModel);
|
||||
clearAllSelectedParameters(dashboardTabParamListTableModel);
|
||||
clearAllSelectedParameters(dashboardTabSwitchListTableModel);
|
||||
clearAllSelectedParameters(dashboardTabExternalListTableModel);
|
||||
}
|
||||
catch (Exception cae) {
|
||||
LOGGER.error("Un-select ALL error: " + cae);
|
||||
}
|
||||
finally {
|
||||
LOGGER.info("Un-select all parameters by user action");
|
||||
}
|
||||
}
|
||||
});
|
||||
return button;
|
||||
|
|
|
@ -86,7 +86,7 @@ public class EcuLoggerMenuBar extends JMenuBar {
|
|||
settingsMenu.add(new MenuItem("Log File Output Location...", new LogFileLocationAction(logger), VK_O, getKeyStroke(VK_O, CTRL_MASK)));
|
||||
settingsMenu.add(new JSeparator());
|
||||
settingsMenu.add(new RadioButtonMenuItem("Control File Logging With Defogger Switch", VK_C, getKeyStroke(VK_C, CTRL_MASK), new LogFileControllerSwitchAction(logger), logger.getSettings().isFileLoggingControllerSwitchActive()));
|
||||
RadioButtonMenuItem fastPoll = new RadioButtonMenuItem("Fast polling mode", VK_M, getKeyStroke(VK_M, CTRL_MASK), new FastPollModeAction(logger), logger.getSettings().isFastPoll());
|
||||
RadioButtonMenuItem fastPoll = new RadioButtonMenuItem("Enable Fast Polling Mode", VK_M, getKeyStroke(VK_M, CTRL_MASK), new FastPollModeAction(logger), logger.getSettings().isFastPoll());
|
||||
fastPoll.setToolTipText("Select to enable faster polling of the ECU");
|
||||
settingsMenu.add(fastPoll);
|
||||
settingsMenu.add(new RadioButtonMenuItem("Use Absolute Timestamp In Log File", VK_T, getKeyStroke(VK_T, CTRL_MASK), new LogFileAbsoluteTimestampAction(logger), logger.getSettings().isFileLoggingAbsoluteTimestamp()));
|
||||
|
|
|
@ -61,6 +61,11 @@ public final class MTSConnector {
|
|||
mts(mtsPort);
|
||||
}
|
||||
|
||||
public void dispose() {
|
||||
mts.disconnect();
|
||||
mts.dispose();
|
||||
}
|
||||
|
||||
private void createMts() {
|
||||
// create mts interface
|
||||
this.mts = createMTS();
|
||||
|
|
|
@ -77,6 +77,7 @@ public final class Lm2MtsDataSource implements ExternalDataSource {
|
|||
));
|
||||
}
|
||||
}
|
||||
connector.dispose();
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
|
|
Loading…
Reference in New Issue