在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