mirror of
https://git.freebsd.org/ports.git
synced 2025-06-18 03:00:42 -04:00
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>
21 lines
813 B
Java
21 lines
813 B
Java
--- plugins/org.eclipse.swt/Eclipse SWT Mozilla/gtk/org/eclipse/swt/browser/MozillaDelegate.java.orig 2007-06-26 04:57:02.000000000 +0900
|
|
+++ plugins/org.eclipse.swt/Eclipse SWT Mozilla/gtk/org/eclipse/swt/browser/MozillaDelegate.java 2007-09-12 13:17:45.000000000 +0900
|
|
@@ -26,14 +26,17 @@
|
|
static final int STOP_PROPOGATE = 1;
|
|
|
|
static boolean IsLinux;
|
|
+ static boolean IsFreeBSD;
|
|
static {
|
|
String osName = System.getProperty ("os.name").toLowerCase (); //$NON-NLS-1$
|
|
IsLinux = osName.startsWith ("linux"); //$NON-NLS-1$
|
|
+ IsFreeBSD = osName.startsWith ("freebsd"); //$NON-NLS-1$
|
|
+
|
|
}
|
|
|
|
MozillaDelegate (Browser browser) {
|
|
super ();
|
|
- if (!IsLinux) {
|
|
+ if (!IsLinux && !IsFreeBSD) {
|
|
browser.dispose ();
|
|
SWT.error (SWT.ERROR_NO_HANDLES, null, " [Unsupported platform]"); //$NON-NLS-1$
|
|
}
|