From 1524ff162cf8094670a182eff000a22a402d96e9 Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Tue, 1 Oct 2024 22:46:50 +0200 Subject: [PATCH] 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$ /**