随笔 - 630  文章 - 7 评论 - 47 阅读 - 49万

1 SplashScreen.java

 SplashScreen.java

 

2 Activator::start调用

 

SplashScreen.createSplashThread();
3 Application::start调用

 

 

        if(SplashScreen.waitForVisibleSplash()) {
            // 插入初始化代码:init();
        }
 4 ApplicationWorkbenchWindowAdvisor::postWindowOpen调用

 

 

        super.postWindowOpen();
        SplashScreen.setSplashMessageAndProgressValue(
"ok"100);
        SplashScreen.terminateSplashThread();

 

 

 5 在任何需要更新进度条的地方,例如第3步中的init()方法中调用

 

 

SplashScreen.setSplashMessageAndProgressValue("message"60);

 

 

 有时间做个小例子放上来。


 

 

posted on   网络大豆  阅读(323)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示