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 2011-09-05 15:31  网络大豆  阅读(310)  评论(0编辑  收藏  举报