Top / Eclipse / プラグイン開発のTIPS集 / RCPでスプラッシュスクリーンを閉じる

org.eclipse.core.runtime.Platform#endSplash() を実行すると、表示されているスプラッシュスクリーンを終了することができます。

サンプル:

 public Object run(Object args) throws Exception {
   Display display = PlatformUI.createDisplay();
   try {
     final Session session = Session.getInstance();
     Platform.endSplash();
     if (!login(session))
       return IPlatformRunnable.EXIT_OK;
     int returnCode = PlatformUI.createAndRunWorkbench(display,
         new ApplicationWorkbenchAdvisor());
     if (returnCode == PlatformUI.RETURN_RESTART) {
       return IPlatformRunnable.EXIT_RESTART;
     }
     return IPlatformRunnable.EXIT_OK;
   } finally {
     display.dispose();
   }
 }

これはEclipse Rich Client Platform の本に載ってたサンプルです。


この記事は

選択肢 投票
おもしろかった 0  
そうでもない 0  

Top / Eclipse / プラグイン開発のTIPS集 / RCPでスプラッシュスクリーンを閉じる

現在のアクセス:7460


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2006-05-19 (金) 17:20:10 (6551d)