Eclipse RCP实现自定义闪屏

mac2022-06-30  22

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 );

 

 

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

 

 

转载于:https://www.cnblogs.com/cuizhf/archive/2011/09/05/2167589.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)