Changeset 209
- Timestamp:
- 04/09/11 10:46:22 (14 months ago)
- Location:
- trunk
- Files:
-
- 6 modified
-
CHANGELOG (modified) (1 diff)
-
src/org/jergometer/communication/BikeConnectorSerial.java (modified) (2 diffs)
-
src/org/jergometer/gui/SettingsWindow.java (modified) (3 diffs)
-
src/org/jergometer/Jergometer.java (modified) (1 diff)
-
src/org/jergometer/translation/jergometer_de.properties (modified) (1 diff)
-
src/org/jergometer/translation/jergometer.properties (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/CHANGELOG
r207 r209 4 4 == coming 0.7.12 == 5 5 * [stefan] * fixed bug #182: JErgometer wants to update even if it's a bleeding edge version 6 * implemented issue #247: display error message when JErgometer is started without RXTX library 6 7 7 8 == 0.7.11 == -
trunk/src/org/jergometer/communication/BikeConnectorSerial.java
r208 r209 8 8 9 9 import org.jergometer.translation.I18n; 10 11 import javax.swing.*; 10 12 11 13 /** … … 23 25 driver.initialize(); 24 26 } catch (Exception e) { 25 System.out.println("Didn't find " + driverName); 27 System.err.println("Could not load serial port driver \"" + driverName + "\"."); 28 e.printStackTrace(); 26 29 } 27 30 } -
trunk/src/org/jergometer/gui/SettingsWindow.java
r208 r209 15 15 */ 16 16 public class SettingsWindow extends JDialog { 17 18 17 19 { 18 20 // GUI initializer generated by IntelliJ IDEA GUI Designer … … 258 260 } 259 261 260 261 262 public enum ReturnCode { 262 263 abort, save … … 380 381 DefaultComboBoxModel comboBoxModel = new DefaultComboBoxModel(); 381 382 int i = 0; 382 for (String s : BikeConnectorSerial.getPortNames()) { 383 comboBoxModel.addElement(s); 384 // check if this comport this the current comport 385 if (comPort != null && s.equals(comPort)) { 386 comPortIndex = i; 387 } 388 i++; 389 } 383 384 try { 385 // detect available serial ports 386 for (String s : BikeConnectorSerial.getPortNames()) { 387 comboBoxModel.addElement(s); 388 // check if this comport this the current comport 389 if (comPort != null && s.equals(comPort)) { 390 comPortIndex = i; 391 } 392 i++; 393 } 394 } catch (NoClassDefFoundError ignored) { 395 } catch (UnsatisfiedLinkError e) { 396 e.printStackTrace(); 397 JOptionPane.showMessageDialog(this, I18n.getString("msg.unsatisfied_link_error"), I18n.getString("error_dialog.title"), JOptionPane.ERROR_MESSAGE); 398 } catch (Exception e) { 399 e.printStackTrace(); 400 JOptionPane.showMessageDialog(this, I18n.getString("msg.connection_failed"), I18n.getString("error_dialog.title"), JOptionPane.ERROR_MESSAGE); 401 } 402 390 403 // if comport is not in the list -> add it 391 404 if (comPort != null && comPortIndex == -1) { -
trunk/src/org/jergometer/Jergometer.java
r208 r209 364 364 JOptionPane.showMessageDialog(mainWindow, I18n.getString("msg.configure_comport_first")); 365 365 mainWindow.openSettingsWindow(); 366 } catch (NoClassDefFoundError e) { 367 JOptionPane.showMessageDialog(mainWindow, I18n.getString("msg.unsatisfied_link_error"), I18n.getString("error_dialog.title"), JOptionPane.ERROR_MESSAGE); 368 return; 366 369 } catch (UnsatisfiedLinkError e) { 367 370 e.printStackTrace(); -
trunk/src/org/jergometer/translation/jergometer_de.properties
r207 r209 117 117 connection_tester.retrieving_ergometer_id=Hole Ergometer-ID 118 118 msg.com_port_used_by_the_following_application=Der COM-Port wird derzeit von der Anwendung "%s" genutzt! 119 msg.unsatisfied_link_error=JErgometer konnte leider nicht die richtige COM-Port-Bibliothek für Ihr Betriebssystem laden.\nBitte melden Sie das Problem dem Entwickler, indem Sie ihm eine Mail schreiben oder auf jergometer.org ein neues Ticket zu dem Problem anlegen.\nVergessen Sie dabei bitte nicht, Ihr Betriebsystem und die Fehlerausschriften im Konsolenfenster anzugeben. Danke.119 msg.unsatisfied_link_error=JErgometer konnte leider nicht die Serial-Port-Bibliothek für Ihr Betriebssystem laden.\nBitte melden Sie das Problem dem Entwickler, indem Sie ihm eine Mail schreiben oder auf jergometer.org ein einen Fehlerbericht (neues Ticket) verfassen.\nVergessen Sie dabei bitte nicht, Ihr Betriebsystem und die Fehlerausschriften im Konsolenfenster anzugeben. Danke. 120 120 error_dialog.title=Fehler! 121 121 menu.programs.edit=Editieren -
trunk/src/org/jergometer/translation/jergometer.properties
r207 r209 96 96 connection_tester.retrieving_ergometer_id=Retrieving ergometer id 97 97 msg.com_port_used_by_the_following_application=COM port is currently owned by application "%s"! 98 msg.unsatisfied_link_error=JErgometer could not load the correct COM port library for your operating system.\nPlease file a bug report on jergometer.org and include the console output and the major information about your OS. Thanks.98 msg.unsatisfied_link_error=JErgometer could not load the serial port library for your operating system.\nPlease file a bug report on jergometer.org and include the console output and the info which OS you are using. Thanks. 99 99 error_dialog.title=Error! 100 100 menu.programs.edit=Edit
![(please configure the [header_logo] section in trac.ini)](https://jergometer.org/images/fork_me_on_github.png)