|
org.eclipse.core.runtime.Platform#endSplash() を実行すると、表示されているスプラッシュスクリーンを終了することができます。 サンプル: public Object run(Object args) throws Exception {
Display display = PlatformUI.createDisplay();
try {
final Session session = Session.getInstance();
Platform.endSplash();
if (!login(session))
return IPlatformRunnable.EXIT_OK;
int returnCode = PlatformUI.createAndRunWorkbench(display,
new ApplicationWorkbenchAdvisor());
if (returnCode == PlatformUI.RETURN_RESTART) {
return IPlatformRunnable.EXIT_RESTART;
}
return IPlatformRunnable.EXIT_OK;
} finally {
display.dispose();
}
}
これはEclipse Rich Client Platform の本に載ってたサンプルです。 この記事は 現在のアクセス:7816 |