From 6446751175de55582940ef090884a66d58a09395 Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Wed, 2 Oct 2024 19:56:49 +0200 Subject: [PATCH 1/2] Add constant for ppc64le architecture in Platform class --- .../src/org/eclipse/core/runtime/Platform.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/Platform.java b/runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/Platform.java index c3a81b2619d..3b1484e102b 100644 --- a/runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/Platform.java +++ b/runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/Platform.java @@ -417,6 +417,14 @@ public static boolean isMac() { */ public static final String ARCH_AARCH64 = "aarch64";//$NON-NLS-1$ + /** + * Constant string (value {@code ppc64le}) indicating the platform is running on + * an little-endian PowerPC 64bit based architecture. + * + * @since 3.32 + */ + public static final String ARCH_PPC64LE = "ppc64le"; //$NON-NLS-1$ + /** * Constant string (value {@code riscv64} indicating the platform is running on * an RISC-V 64bit-based architecture. From 780ea0591a6acf9062014a5a84303c5f620ee37f Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Tue, 1 Oct 2024 22:46:50 +0200 Subject: [PATCH 2/2] Deprecate ARCH_X86 and WS_WPF constants in o.e.core.runtime.Platform and update the list of known architectures and window-systems --- .../org/eclipse/core/internal/runtime/InternalPlatform.java | 5 +++-- .../src/org/eclipse/core/runtime/Platform.java | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/InternalPlatform.java b/runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/InternalPlatform.java index 43231685c23..80c256d3b2f 100644 --- a/runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/InternalPlatform.java +++ b/runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/InternalPlatform.java @@ -91,7 +91,8 @@ */ public final class InternalPlatform { - private static final String[] ARCH_LIST = { Platform.ARCH_AARCH64, Platform.ARCH_X86, Platform.ARCH_X86_64 }; + private static final String[] ARCH_LIST = { Platform.ARCH_AARCH64, Platform.ARCH_PPC64LE, Platform.ARCH_RISCV64, + Platform.ARCH_X86_64 }; public static final StackWalker STACK_WALKER = StackWalker.getInstance(StackWalker.Option.RETAIN_CLASS_REFERENCE); @@ -132,7 +133,7 @@ public final class InternalPlatform { private static final InternalPlatform singleton = new InternalPlatform(); - private static final String[] WS_LIST = { Platform.WS_COCOA, Platform.WS_GTK, Platform.WS_WIN32, Platform.WS_WPF }; + private static final String[] WS_LIST = { Platform.WS_COCOA, Platform.WS_GTK, Platform.WS_WIN32 }; private IPath cachedInstanceLocation; // Cache the path of the instance location private ServiceTracker configurationLocation = null; private BundleContext context; diff --git a/runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/Platform.java b/runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/Platform.java index 3b1484e102b..1b5c83f271d 100644 --- a/runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/Platform.java +++ b/runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/Platform.java @@ -353,7 +353,9 @@ public static boolean isMac() { *

* * @since 3.0 + * @deprecated not supported anymore */ + @Deprecated public static final String ARCH_X86 = "x86";//$NON-NLS-1$ /** @@ -548,7 +550,9 @@ public static boolean isMac() { * machine using the WPF windowing system. * * @since 3.3 + * @deprecated not supported anymore */ + @Deprecated public static final String WS_WPF = "wpf";//$NON-NLS-1$ /**