added executable class for standalone startup of logger

git-svn-id: http://svn.3splooges.com/romraider-arch/trunk@450 d2e2e1cd-ba16-0410-be16-b7c4453c7c2d
This commit is contained in:
kascade 2007-01-19 05:33:45 +00:00
parent d28f6dddf2
commit 42c6e39f0f
2 changed files with 39 additions and 8 deletions

View File

@ -69,7 +69,6 @@ import enginuity.logger.ui.handler.table.TableUpdateHandler;
import enginuity.logger.ui.paramlist.ParameterListTable;
import enginuity.logger.ui.paramlist.ParameterListTableModel;
import enginuity.logger.ui.paramlist.ParameterRow;
import enginuity.swing.LookAndFeelManager;
import static enginuity.util.ParamChecker.checkNotNull;
import static enginuity.util.ParamChecker.isNullOrEmpty;
import static enginuity.util.ThreadUtil.sleep;
@ -627,13 +626,10 @@ public final class EcuLogger extends JFrame implements WindowListener, PropertyC
}
}
//**********************************************************************
public static void main(String... args) {
startLogger(EXIT_ON_CLOSE, new Settings());
}
public static void startLogger(final int defaultCloseOperation, final Settings settings) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
@ -643,9 +639,6 @@ public final class EcuLogger extends JFrame implements WindowListener, PropertyC
}
private static void createAndShowGUI(int defaultCloseOperation, Settings settings) {
// set look and feel
LookAndFeelManager.initLookAndFeel();
// instantiate the controlling class.
EcuLogger ecuLogger = new EcuLogger(settings);

View File

@ -0,0 +1,38 @@
/*
*
* Enginuity Open-Source Tuning, Logging and Reflashing
* Copyright (C) 2006 Enginuity.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
*/
package enginuity.logger;
import static javax.swing.WindowConstants.EXIT_ON_CLOSE;
import enginuity.Settings;
import enginuity.swing.LookAndFeelManager;
public final class EcuLoggerExec {
public static void main(String... args) {
// set look and feel
LookAndFeelManager.initLookAndFeel();
// start logger
EcuLogger.startLogger(EXIT_ON_CLOSE, new Settings());
}
}