From 6dc32069d7c58c0ea772fdd9c681d90084b71bbe Mon Sep 17 00:00:00 2001 From: Takuya Ono Date: Mon, 20 Aug 2007 15:12:43 +0000 Subject: [PATCH] BUGFIX: When start up bind error occurred, double error dialog was displayed. --- src/org/jent/checksmtp/Bundle.properties | 15 ++++++++++++++- src/org/jent/checksmtp/Bundle_ja_JP.properties | 20 ++++++++++++++++---- src/org/jent/checksmtp/SMTPclient.java | 2 +- 3 files changed, 31 insertions(+), 6 deletions(-) diff --git a/src/org/jent/checksmtp/Bundle.properties b/src/org/jent/checksmtp/Bundle.properties index 55045f0..19ae929 100644 --- a/src/org/jent/checksmtp/Bundle.properties +++ b/src/org/jent/checksmtp/Bundle.properties @@ -119,7 +119,7 @@ Processer.error.Runtime_Exception_occurred_in_SMTP_parse=Runtime Exception occur Processer.error.Error_occurred_in_SMTP_parse.=Error occurred in SMTP parse. -SMTPClient.error.Recive_Port_bind_error=Recive Port bind error. +SMTPClient.error.Recive_Port_bind_error=Recive Port bind error. Stop Service. SMTPClient.error.IO_Error_Occurred=I/O Error Occurred. Stop service. @@ -128,3 +128,16 @@ SMTPClient.error.Argument_Error_Occurted=Stop Service. Argument Error Occurted. SMTPCLient.error.Runtime_Exception_was_occurred=Runtime Exception was occurred. Stop service. SMTPClient.error.Unexpected_service_stoping_ocurreed=Unexpected service stoping ocurreed. Stoped service. + +ApplicationUI.jLabel7.text=Confirm Timeout\: + +ApplicationUI.jTextFieldConfirmTimeout.text=0 + +ApplicationUI.jTextFieldConfirmTimeout.toolTipText=How many second waiting for auto confirm. (0\:forever) +ApplicationUI.jPanelLDAP.TabConstraints\ tabToolTip=LDAP configuration. + +ApplicationUI.jPanelMail.TabConstraints\ tabToolTip=Mail relayted configuration. + +ApplicationUI.jPanelAbout.TabConstraints\ tabToolTip=About this program. + +ApplicationUI.exception.Timeout_need_to_a_positive_number=Timeout need to a positive number. diff --git a/src/org/jent/checksmtp/Bundle_ja_JP.properties b/src/org/jent/checksmtp/Bundle_ja_JP.properties index 6ae1e42..085ce41 100644 --- a/src/org/jent/checksmtp/Bundle_ja_JP.properties +++ b/src/org/jent/checksmtp/Bundle_ja_JP.properties @@ -109,12 +109,24 @@ Processer.error.Runtime_Exception_occurred_in_SMTP_parse=\u30E1\u30FC\u30EB\u30B Processer.error.Error_occurred_in_SMTP_parse.=\u30E1\u30FC\u30EB\u30B5\u30FC\u30D0\u3068\u306ESMTP\u901A\u4FE1\u3067\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002 -SMTPClient.error.Recive_Port_bind_error=\u53D7\u4FE1\u7528\u306E\u30DD\u30FC\u30C8\u306E\u521D\u671F\u5316(bind)\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002 +SMTPClient.error.Recive_Port_bind_error=\u53D7\u4FE1\u7528\u306E\u30DD\u30FC\u30C8\u306E\u521D\u671F\u5316(bind)\u306B\u5931\u6557\u3057\u305F\u306E\u3067\u53D7\u4FE1\u304C\u505C\u6B62\u3057\u307E\u3057\u305F\u3002 -SMTPClient.error.IO_Error_Occurred=\u53D7\u4FE1\u5F85\u3067\u901A\u4FE1\u30A8\u30E9\u30FC +SMTPClient.error.IO_Error_Occurred=\u53D7\u4FE1\u5F85\u3067\u901A\u4FE1\u30A8\u30E9\u30FC\u306B\u3088\u308A\u53D7\u4FE1\u304C\u505C\u6B62\u3057\u307E\u3057\u305F\u3002 SMTPClient.error.Argument_Error_Occurted=\u8A2D\u5B9A\u5024\u304C\u6B63\u3057\u304F\u306A\u3044\u305F\u3081\u306B\u53D7\u4FE1\u304C\u3067\u304D\u3066\u3044\u307E\u305B\u3093\u3002\u8A2D\u5B9A\u3092\u5909\u3048\u3066\u307F\u3066\u304F\u3060\u3055\u3044\u3002 -SMTPCLient.error.Runtime_Exception_was_occurred=\u5B9F\u884C\u6642\u30A8\u30E9\u30FC\u306B\u3088\u308A\u53D7\u4FE1\u304C\u3067\u304D\u306A\u304F\u306A\u308A\u307E\u3057\u305F\u3002\u8A2D\u5B9A\u3092\u5909\u3048\u3066\u307F\u3066\u304F\u3060\u3055\u3044\u3002 +SMTPCLient.error.Runtime_Exception_was_occurred=\u5B9F\u884C\u6642\u30A8\u30E9\u30FC\u306B\u3088\u308A\u53D7\u4FE1\u3092\u505C\u6B62\u3057\u307E\u3057\u305F\u3002\u8A2D\u5B9A\u3092\u5909\u3048\u3066\u307F\u3066\u304F\u3060\u3055\u3044\u3002 -SMTPClient.error.Unexpected_service_stoping_ocurreed=\u4E88\u60F3\u5916\u306E\u30A8\u30E9\u30FC\u306B\u3088\u308A\u53D7\u4FE1\u304C\u505C\u6B62\u3057\u3066\u3057\u307E\u3044\u307E\u3057\u305F\u3002 +SMTPClient.error.Unexpected_service_stoping_ocurreed=\u4E88\u60F3\u5916\u306E\u30A8\u30E9\u30FC\u306B\u3088\u308A\u53D7\u4FE1\u3092\u505C\u6B62\u3057\u307E\u3057\u305F\u3002 + +ApplicationUI.jLabel7.text=\u6642\u9650\u5F0F\u9001\u4FE1\u78BA\u8A8D\u5F85\u3061\u6642\u9593\: + +ApplicationUI.jTextFieldConfirmTimeout.toolTipText=\u9001\u4FE1\u78BA\u8A8D\u3092\u5F85\u3064\u79D2\u6570(0\:\u6C38\u4E45\u5F85\u3061) + +ApplicationUI.jPanelMail.TabConstraints\ tabToolTip=\u30E1\u30FC\u30EB\u95A2\u4FC2\u306E\u8A2D\u5B9A + +ApplicationUI.jPanelLDAP.TabConstraints\ tabToolTip=LDAP\u95A2\u4FC2\u306E\u8A2D\u5B9A + +ApplicationUI.jPanelAbout.TabConstraints\ tabToolTip=\u3053\u306E\u30D7\u30ED\u30B0\u30E9\u30E0\u306B\u3064\u3044\u3066 + +ApplicationUI.exception.Timeout_need_to_a_positive_number=\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8\u5024\u306F0\u4EE5\u4E0A\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002 diff --git a/src/org/jent/checksmtp/SMTPclient.java b/src/org/jent/checksmtp/SMTPclient.java index 2c6912a..384c1bf 100644 --- a/src/org/jent/checksmtp/SMTPclient.java +++ b/src/org/jent/checksmtp/SMTPclient.java @@ -56,7 +56,7 @@ public class SMTPclient implements Runnable { new byte[] { 127, 0, 0, 1 })); } } catch (BindException bindEx) { - //fatalError = true; + fatalError = true; String errorMessage = java.util.ResourceBundle.getBundle("org/jent/checksmtp/Bundle").getString("SMTPClient.error.Recive_Port_bind_error") + bindEx.getMessage(); System.err.println(errorMessage); bindEx.printStackTrace(); -- 2.11.0