Nishio Tweet Managerのgit
Revision | 9667d3c82c2962029b2e2a4025ca2b29bdb879a5 (tree) |
---|---|
Time | 2011-09-03 03:06:36 |
Author | U-nishio-PC8\nishio <spark_xp@user...> |
Commiter | U-nishio-PC8\nishio |
プログラムがバグでスタートできない問題を解決
@@ -363,7 +363,9 @@ public class TweetMainAction implements ConnectionLifeCycleListener{ | ||
363 | 363 | updateNotifyInformation(); |
364 | 364 | |
365 | 365 | //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 | + } | |
367 | 369 | } |
368 | 370 | |
369 | 371 | /** |
@@ -470,7 +472,13 @@ public class TweetMainAction implements ConnectionLifeCycleListener{ | ||
470 | 472 | public void updateNotifyInformation() { |
471 | 473 | //streaming api利用時、fav通知 |
472 | 474 | 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 | + } | |
474 | 482 | } |
475 | 483 | } |
476 | 484 |
@@ -2492,33 +2500,33 @@ public class TweetMainAction implements ConnectionLifeCycleListener{ | ||
2492 | 2500 | public void setFavNotify(boolean notify) { |
2493 | 2501 | this.favNotify = notify; |
2494 | 2502 | } |
2495 | - | |
2503 | + | |
2496 | 2504 | /** |
2497 | 2505 | * 偶数行テーブルの色取得 |
2498 | - * @return | |
2506 | + * @return | |
2499 | 2507 | */ |
2500 | 2508 | public Color getEvenTableColor() { |
2501 | 2509 | return evenTableColor; |
2502 | 2510 | } |
2503 | - | |
2511 | + | |
2504 | 2512 | /** |
2505 | 2513 | * 偶数行テーブルの色設定 |
2506 | 2514 | */ |
2507 | 2515 | public void setEvenTableColor(Color evenTableColor) { |
2508 | 2516 | this.evenTableColor = evenTableColor; |
2509 | 2517 | } |
2510 | - | |
2518 | + | |
2511 | 2519 | /** |
2512 | 2520 | * 奇数行テーブルの色取得 |
2513 | - * @return | |
2521 | + * @return | |
2514 | 2522 | */ |
2515 | 2523 | public Color getOddTableColor() { |
2516 | 2524 | return oddTableColor; |
2517 | 2525 | } |
2518 | - | |
2526 | + | |
2519 | 2527 | /** |
2520 | 2528 | * 奇数行テーブルの色設定 |
2521 | - * @param oddTableColor | |
2529 | + * @param oddTableColor | |
2522 | 2530 | */ |
2523 | 2531 | public void setOddTableColor(Color oddTableColor) { |
2524 | 2532 | this.oddTableColor = oddTableColor; |
@@ -29,7 +29,7 @@ import org.xml.sax.SAXParseException; | ||
29 | 29 | * |
30 | 30 | */ |
31 | 31 | public class ClientVersionManager { |
32 | - public static final String currentVersion = "0.6"; | |
32 | + public static final String currentVersion = "0.61"; | |
33 | 33 | public static final String nishioTweetManagerURL = "http://densan-labs.net/software/ntm/"; |
34 | 34 | private static final String characterSet = "UTF-8"; |
35 | 35 | private static final String latestInformationURL = "http://git.densan-labs.net/ntm/latest.txt"; |