Skip to content

Commit 1524ff1

Browse files
HannesWellakurtakov
authored andcommitted
Deprecate ARCH_X86 and WS_WPF constants in o.e.core.runtime.Platform
and update the list of known architectures and window-systems
1 parent 65ab78f commit 1524ff1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/InternalPlatform.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@
9191
*/
9292
public final class InternalPlatform {
9393

94-
private static final String[] ARCH_LIST = { Platform.ARCH_AARCH64, Platform.ARCH_X86, Platform.ARCH_X86_64 };
94+
private static final String[] ARCH_LIST = { Platform.ARCH_AARCH64, Platform.ARCH_PPC64LE, Platform.ARCH_RISCV64,
95+
Platform.ARCH_X86_64 };
9596

9697
public static final StackWalker STACK_WALKER = StackWalker.getInstance(StackWalker.Option.RETAIN_CLASS_REFERENCE);
9798

@@ -132,7 +133,7 @@ public final class InternalPlatform {
132133

133134
private static final InternalPlatform singleton = new InternalPlatform();
134135

135-
private static final String[] WS_LIST = { Platform.WS_COCOA, Platform.WS_GTK, Platform.WS_WIN32, Platform.WS_WPF };
136+
private static final String[] WS_LIST = { Platform.WS_COCOA, Platform.WS_GTK, Platform.WS_WIN32 };
136137
private IPath cachedInstanceLocation; // Cache the path of the instance location
137138
private ServiceTracker<Location,Location> configurationLocation = null;
138139
private BundleContext context;

runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/Platform.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,9 @@ public static boolean isMac() {
353353
* </p>
354354
*
355355
* @since 3.0
356+
* @deprecated not supported anymore
356357
*/
358+
@Deprecated
357359
public static final String ARCH_X86 = "x86";//$NON-NLS-1$
358360

359361
/**
@@ -548,7 +550,9 @@ public static boolean isMac() {
548550
* machine using the WPF windowing system.
549551
*
550552
* @since 3.3
553+
* @deprecated not supported anymore
551554
*/
555+
@Deprecated
552556
public static final String WS_WPF = "wpf";//$NON-NLS-1$
553557

554558
/**

0 commit comments

Comments
 (0)