• R/O
  • HTTP
  • SSH
  • HTTPS

nt-manager: Commit

Nishio Tweet Managerのgit


Commit MetaInfo

Revision9667d3c82c2962029b2e2a4025ca2b29bdb879a5 (tree)
Time2011-09-03 03:06:36
AuthorU-nishio-PC8\nishio <spark_xp@user...>
CommiterU-nishio-PC8\nishio

Log Message

プログラムがバグでスタートできない問題を解決

Change Summary

Incremental Difference

--- a/src/twitter/gui/action/TweetMainAction.java
+++ b/src/twitter/gui/action/TweetMainAction.java
@@ -363,7 +363,9 @@ public class TweetMainAction implements ConnectionLifeCycleListener{
363363 updateNotifyInformation();
364364
365365 //streaming apiの状態listener設定
366- this.tweetManager.getStreamManager().addCollectionLifeCycleListener(this);
366+ if( this.tweetManager != null && this.tweetManager.getStreamManager() != null ) {
367+ this.tweetManager.getStreamManager().addCollectionLifeCycleListener(this);
368+ }
367369 }
368370
369371 /**
@@ -470,7 +472,13 @@ public class TweetMainAction implements ConnectionLifeCycleListener{
470472 public void updateNotifyInformation() {
471473 //streaming api利用時、fav通知
472474 if( this.favNotify ) {
473- this.tweetManager.getStreamManager().setFavNotifyManager(new TweetFavNotifyManager(this.trayIcon));
475+ try {
476+ if( this.tweetManager != null && this.tweetManager.getStreamManager() != null ) {
477+ this.tweetManager.getStreamManager().setFavNotifyManager(new TweetFavNotifyManager(this.trayIcon));
478+ }
479+ }catch(Exception e) {
480+ e.printStackTrace();
481+ }
474482 }
475483 }
476484
@@ -2492,33 +2500,33 @@ public class TweetMainAction implements ConnectionLifeCycleListener{
24922500 public void setFavNotify(boolean notify) {
24932501 this.favNotify = notify;
24942502 }
2495-
2503+
24962504 /**
24972505 * 偶数行テーブルの色取得
2498- * @return
2506+ * @return
24992507 */
25002508 public Color getEvenTableColor() {
25012509 return evenTableColor;
25022510 }
2503-
2511+
25042512 /**
25052513 * 偶数行テーブルの色設定
25062514 */
25072515 public void setEvenTableColor(Color evenTableColor) {
25082516 this.evenTableColor = evenTableColor;
25092517 }
2510-
2518+
25112519 /**
25122520 * 奇数行テーブルの色取得
2513- * @return
2521+ * @return
25142522 */
25152523 public Color getOddTableColor() {
25162524 return oddTableColor;
25172525 }
2518-
2526+
25192527 /**
25202528 * 奇数行テーブルの色設定
2521- * @param oddTableColor
2529+ * @param oddTableColor
25222530 */
25232531 public void setOddTableColor(Color oddTableColor) {
25242532 this.oddTableColor = oddTableColor;
--- a/src/twitter/manage/ClientVersionManager.java
+++ b/src/twitter/manage/ClientVersionManager.java
@@ -29,7 +29,7 @@ import org.xml.sax.SAXParseException;
2929 *
3030 */
3131 public class ClientVersionManager {
32- public static final String currentVersion = "0.6";
32+ public static final String currentVersion = "0.61";
3333 public static final String nishioTweetManagerURL = "http://densan-labs.net/software/ntm/";
3434 private static final String characterSet = "UTF-8";
3535 private static final String latestInformationURL = "http://git.densan-labs.net/ntm/latest.txt";
Show on old repository browser