Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2006-11-22 16:19:23 +0000
committerAndrew Niefer2006-11-22 16:19:23 +0000
commit6827b4fb72f9fbeb64b41a06ae967be4214c1593 (patch)
treee293127e95788440b0dcdaa3e7f6addf8b8f312c /bundles
parent5887a27def0fbe5dc955ae13bfb69e0345d71091 (diff)
downloadrt.equinox.framework-6827b4fb72f9fbeb64b41a06ae967be4214c1593.tar.gz
rt.equinox.framework-6827b4fb72f9fbeb64b41a06ae967be4214c1593.tar.xz
rt.equinox.framework-6827b4fb72f9fbeb64b41a06ae967be4214c1593.zip
Add JNI call for showSplash
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.equinox.launcher/library/eclipseJNI.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.launcher/library/eclipseJNI.c b/bundles/org.eclipse.equinox.launcher/library/eclipseJNI.c
index 89230f58b..124af16ad 100644
--- a/bundles/org.eclipse.equinox.launcher/library/eclipseJNI.c
+++ b/bundles/org.eclipse.equinox.launcher/library/eclipseJNI.c
@@ -95,9 +95,14 @@ static void registerNatives(JNIEnv *env) {
static void splash(JNIEnv *env, jstring s) {
const _TCHAR* data;
- data = JNI_GetStringChars(env, s);
- showSplash(data);
- JNI_ReleaseStringChars(env, s, data);
+ /* Don't show the splash if there is already one up.
+ * TODO Do we want to support changing the image here?
+ */
+ if(getSplashHandle() == 0) {
+ data = JNI_GetStringChars(env, s);
+ showSplash(data);
+ JNI_ReleaseStringChars(env, s, data);
+ }
}
static void setExitData(JNIEnv *env, jstring s){

Back to the top