diff options
author | Alexander Kurtakov | 2016-11-28 16:03:31 +0000 |
---|---|---|
committer | Thomas Watson | 2016-11-29 13:42:55 +0000 |
commit | 6607071ace83ee36cdbb931747962d7ef0f50815 (patch) | |
tree | 61c2801f23a2642aa47e2d2af2681622d8419bab | |
parent | 006bf1246a0d3de2c87923d9d0be240c733bb216 (diff) | |
download | rt.equinox.framework-6607071ace83ee36cdbb931747962d7ef0f50815.tar.gz rt.equinox.framework-6607071ace83ee36cdbb931747962d7ef0f50815.tar.xz rt.equinox.framework-6607071ace83ee36cdbb931747962d7ef0f50815.zip |
Bug 508308 - Fix alternate ws guessesI20161129-2330I20161129-2000
SWT doesn't ship any of the alternate WS so trying to load them will
never succeed. Further more HPUX and AIX still have MOTIF as WS which
would prevent the proper WS guess if not explicitly specified.
Change-Id: I67d5fb2b3f60391e42ac802f0abd36ee438290de
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r-- | bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java b/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java index bbec0b646..c9d07f914 100644 --- a/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java +++ b/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java @@ -340,9 +340,9 @@ public class Main { if (osName.equals(Constants.OS_MACOSX)) return Constants.WS_COCOA; if (osName.equals(Constants.OS_HPUX)) - return Constants.WS_MOTIF; + return Constants.WS_GTK; if (osName.equals(Constants.OS_AIX)) - return Constants.WS_MOTIF; + return Constants.WS_GTK; if (osName.equals(Constants.OS_SOLARIS)) return Constants.WS_GTK; if (osName.equals(Constants.OS_QNX)) @@ -350,18 +350,6 @@ public class Main { return Constants.WS_UNKNOWN; } - private String getAlternateWS(String defaultWS) { - // We'll have already tried the default, so we only need to map - // in one direction. (default -> alternate) - if (Constants.WS_COCOA.equals(defaultWS)) - return Constants.WS_CARBON; - if (Constants.WS_GTK.equals(defaultWS)) - return Constants.WS_MOTIF; - if (Constants.WS_WIN32.equals(defaultWS)) - return Constants.WS_WPF; - return Constants.WS_UNKNOWN; - } - private String getOS() { if (os != null) return os; @@ -452,14 +440,6 @@ public class Main { String fragmentArch = getArch(); libPath = getLibraryPath(getFragmentString(fragmentOS, fragmentWS, fragmentArch), defaultPath); - if (libPath == null && ws == null) { - // no ws was specified and we didn't find the default fragment, try an alternate ws - String alternateWS = getAlternateWS(fragmentWS); - libPath = getLibraryPath(getFragmentString(fragmentOS, alternateWS, fragmentArch), defaultPath); - if (libPath != null) { - System.getProperties().put(PROP_WS, alternateWS); - } - } } library = libPath; if (library != null) |