在eclipse RCP应用程序中,使用splash.bmp
作为启动画面。大约5-6分钟的应用程序运行后关闭。我希望它在一些UI显示后立即关闭。我尝试在PlatformUI.createAndRunWorkbench(display, new ApplicationWorkbenchAdvisor())
之前使用Platform.endSplash()
以及applicationRunning()
。如何关闭Eclipse eclipse RCP应用程序中的启动画面?
无法关闭启动画面。
任何建议将有所帮助。如果我可以在大约10-15秒后关闭启动画面,也可以。
public Object start(IApplicationContext arg0) throws Exception {
Display display = PlatformUI.createDisplay();
int returnCode = 0;
try {
//arg0.applicationRunning();
Platform.endSplash();
returnCode = PlatformUI.createAndRunWorkbench(display,
new ApplicationWorkbenchAdvisor());
if (returnCode == PlatformUI.RETURN_RESTART) {
return PlatformUI.RETURN_RESTART;
}
return PlatformUI.RETURN_OK;
} finally {
//some other code here.
display.dispose();
}
}
我从来没有遇到过这个。在我所有的RCP应用程序中,splash.bmp会在应用程序启动后立即关闭。你使用的是什么版本的Eclipse? – 2013-02-14 15:33:08
版本:Indigo Service Release 2 内部编号:20120216-1857 – 2013-02-14 16:07:51