diff options
author | Greg Lewis <glewis@FreeBSD.org> | 2007-10-13 03:28:18 +0000 |
---|---|---|
committer | Greg Lewis <glewis@FreeBSD.org> | 2007-10-13 03:28:18 +0000 |
commit | 28a3f566fca055cd6c99ab2f6cd7390324c1814d (patch) | |
tree | 108450e1e2832da70f3e9cccbd427c8f60674457 /java/eclipse-devel/files/post-patch-plugins-swt-gtk-swt-internal-gtk-OS.java | |
parent | Upgrade to 0.39. (diff) |
. Enlist eclipse-devel to get some wider spread of the Eclipse 3.3 port
before it replaces Eclipse 3.2.
The submitters (listed in alphabetical order) collaborated on this.
Submitted by: Mike Bowie <mbowie@buzmo.com>
Dan Rucci <dan@rucci.org>
Ken Yamada <ken@tydfam.jp>
Notes
Notes:
svn path=/head/; revision=201381
Diffstat (limited to 'java/eclipse-devel/files/post-patch-plugins-swt-gtk-swt-internal-gtk-OS.java')
-rw-r--r-- | java/eclipse-devel/files/post-patch-plugins-swt-gtk-swt-internal-gtk-OS.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/java/eclipse-devel/files/post-patch-plugins-swt-gtk-swt-internal-gtk-OS.java b/java/eclipse-devel/files/post-patch-plugins-swt-gtk-swt-internal-gtk-OS.java new file mode 100644 index 000000000000..da7fe1620e47 --- /dev/null +++ b/java/eclipse-devel/files/post-patch-plugins-swt-gtk-swt-internal-gtk-OS.java @@ -0,0 +1,26 @@ +--- plugins/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java.orig 2007-06-26 04:57:20.000000000 +0900 ++++ plugins/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java 2007-09-12 13:29:42.000000000 +0900 +@@ -23,18 +23,20 @@ + } + + /** OS Constants */ +- public static final boolean IsAIX, IsSunOS, IsLinux, IsHPUX; ++ public static final boolean IsFreeBSD, IsAIX, IsSunOS, IsLinux, IsHPUX; + static { + + /* Initialize the OS flags and locale constants */ + String osName = System.getProperty ("os.name"); +- boolean isAIX = false, isSunOS = false, isLinux = false, isHPUX = false; ++ boolean isFreeBSD = false, isAIX = false, isSunOS = false, isLinux = false, isHPUX = false ; ++ if (osName.equals ("FreeBSD")) isFreeBSD = true; + if (osName.equals ("Linux")) isLinux = true; + if (osName.equals ("AIX")) isAIX = true; + if (osName.equals ("Solaris")) isSunOS = true; + if (osName.equals ("SunOS")) isSunOS = true; + if (osName.equals ("HP-UX")) isHPUX = true; +- IsAIX = isAIX; IsSunOS = isSunOS; IsLinux = isLinux; IsHPUX = isHPUX; ++ IsFreeBSD = isFreeBSD; IsAIX = isAIX; IsSunOS = isSunOS; ++ IsLinux = isLinux; IsHPUX = isHPUX; + } + + /** Constants */ |