Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2015-04-17 16:44:54 -0400
committerPascal Rapicault2015-04-20 18:09:24 -0400
commit44336d8123b71d1df865d51e0f2eaf2e1bad615f (patch)
treea29ad412f37b97b1849446f9ec5d6d83cde29a64 /features/org.eclipse.equinox.executable.feature/library/eclipseJNI.c
parent5ebd8e732dcca11efc03ac4721e1909565caf679 (diff)
downloadrt.equinox.framework-44336d8123b71d1df865d51e0f2eaf2e1bad615f.tar.gz
rt.equinox.framework-44336d8123b71d1df865d51e0f2eaf2e1bad615f.tar.xz
rt.equinox.framework-44336d8123b71d1df865d51e0f2eaf2e1bad615f.zip
Bug 461725 - [Mac] Default the configuration to Application SupportI20150421-0800
Change-Id: I6fa3f69c56592245992c11db37ac91e254ad7d68 Signed-off-by: Pascal Rapicault <pascal@rapicorp.com>
Diffstat (limited to 'features/org.eclipse.equinox.executable.feature/library/eclipseJNI.c')
-rw-r--r--features/org.eclipse.equinox.executable.feature/library/eclipseJNI.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/features/org.eclipse.equinox.executable.feature/library/eclipseJNI.c b/features/org.eclipse.equinox.executable.feature/library/eclipseJNI.c
index 845c646c6..cce91e1b7 100644
--- a/features/org.eclipse.equinox.executable.feature/library/eclipseJNI.c
+++ b/features/org.eclipse.equinox.executable.feature/library/eclipseJNI.c
@@ -30,7 +30,8 @@ static JNINativeMethod natives[] = {{"_update_splash", "()V", (void *)&update_sp
{"_set_exit_data", "(Ljava/lang/String;Ljava/lang/String;)V", (void *)&set_exit_data},
{"_set_launcher_info", "(Ljava/lang/String;Ljava/lang/String;)V", (void *)&set_launcher_info},
{"_show_splash", "(Ljava/lang/String;)V", (void *)&show_splash},
- {"_takedown_splash", "()V", (void *)&takedown_splash}};
+ {"_takedown_splash", "()V", (void *)&takedown_splash},
+ {"_get_os_recommended_folder", "()Ljava/lang/String;", (void *)&get_os_recommended_folder}};
/* local methods */
static jstring newJavaString(JNIEnv *env, _TCHAR * str);
@@ -134,6 +135,14 @@ JNIEXPORT void JNICALL takedown_splash(JNIEnv * env, jobject obj){
takeDownSplash();
}
+JNIEXPORT jstring JNICALL get_os_recommended_folder(JNIEnv * env, jobject obj){
+#ifdef MACOSX
+ return newJavaString(env, getFolderForApplicationData());
+#else
+ return NULL;
+#endif
+}
+
/*
* On AIX we need the location of the eclipse shared library so that we
* can find the libeclipse-motif.so library. Reach into the JNIBridge

Back to the top