Skip to content

Commit 0368ee5

Browse files
committed
Add deprecation for removal notices in Util class
Follow-up work for commit 9ee38b5
1 parent a44d462 commit 0368ee5

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

bundles/org.eclipse.jface/src/org/eclipse/jface/util/Util.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ public static String replaceAll(String src, String find, String replacement) {
501501
* Windowing system constant.
502502
* @since 3.5
503503
*/
504-
@Deprecated
504+
@Deprecated(forRemoval = true, since = "2025-03") // 2025-03 was added later for information purposes
505505
public static final String WS_MOTIF = "motif";//$NON-NLS-1$
506506

507507
/**
@@ -514,14 +514,14 @@ public static String replaceAll(String src, String find, String replacement) {
514514
* Windowing system constant.
515515
* @since 3.5
516516
*/
517-
@Deprecated
517+
@Deprecated(forRemoval = true, since = "2025-03") // 2025-03 was added later for information purposes
518518
public static final String WS_PHOTON = "photon";//$NON-NLS-1$
519519

520520
/**
521521
* Windowing system constant.
522522
* @since 3.5
523523
*/
524-
@Deprecated
524+
@Deprecated(forRemoval = true, since = "2025-03") // 2025-03 was added later for information purposes
525525
public static final String WS_CARBON = "carbon";//$NON-NLS-1$
526526

527527
/**
@@ -534,6 +534,7 @@ public static String replaceAll(String src, String find, String replacement) {
534534
* Windowing system constant.
535535
* @since 3.5
536536
*/
537+
@Deprecated(forRemoval = true, since = "2025-03") // 2025-03 was added later for information purposes
537538
public static final String WS_WPF = "wpf";//$NON-NLS-1$
538539

539540
/**
@@ -587,7 +588,7 @@ public static boolean isGtk() {
587588
* @return <code>true</code> for motif platforms
588589
* @since 3.5
589590
*/
590-
@Deprecated
591+
@Deprecated(forRemoval = true, since = "2025-03") // 2025-03 was added later for information purposes
591592
public static boolean isMotif() {
592593
final String ws = SWT.getPlatform();
593594
return WS_MOTIF.equals(ws);
@@ -598,7 +599,7 @@ public static boolean isMotif() {
598599
* @return <code>true</code> for photon platforms
599600
* @since 3.5
600601
*/
601-
@Deprecated
602+
@Deprecated(forRemoval = true, since = "2025-03") // 2025-03 was added later for information purposes
602603
public static boolean isPhoton() {
603604
final String ws = SWT.getPlatform();
604605
return WS_PHOTON.equals(ws);
@@ -609,7 +610,7 @@ public static boolean isPhoton() {
609610
* @return <code>true</code> for carbon platforms
610611
* @since 3.5
611612
*/
612-
@Deprecated
613+
@Deprecated(forRemoval = true, since = "2025-03") // 2025-03 was added later for information purposes
613614
public static boolean isCarbon() {
614615
final String ws = SWT.getPlatform();
615616
return WS_CARBON.equals(ws);
@@ -630,6 +631,7 @@ public static boolean isCocoa() {
630631
* @return <code>true</code> for WPF
631632
* @since 3.5
632633
*/
634+
@Deprecated(forRemoval = true, since = "2025-03") // 2025-03 was added later for information purposes
633635
public static boolean isWpf() {
634636
final String ws = SWT.getPlatform();
635637
return WS_WPF.equals(ws);

bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/keys/BindingPersistence.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,7 @@ private static final void readBindingsFromPreferences(final IMemento preferences
519519
* @param commandService The command service for the workbench; must
520520
* not be <code>null</code>.
521521
*/
522+
@SuppressWarnings("removal")
522523
private static final void readBindingsFromRegistry(final IConfigurationElement[] configurationElements,
523524
final int configurationElementCount, final BindingManager bindingManager,
524525
final CommandManager commandService) {

bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/quickaccess/QuickAccessContents.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ public boolean getShowAllMatches() {
272272
return showAllMatches;
273273
}
274274

275+
@SuppressWarnings("removal")
275276
private void refreshTable(QuickAccessElement perfectMatch, List<QuickAccessEntry>[] entries, String filter) {
276277
if (table.isDisposed()) {
277278
return;

tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/keys/BindingPersistenceTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ public final void testAutoLoad() throws ParseException {
143143
}
144144

145145
@Test
146+
@SuppressWarnings("removal")
146147
public final void testSinglePlatform() throws Exception {
147148
ParameterizedCommand about = new ParameterizedCommand(commandService
148149
.getCommand("org.eclipse.ui.help.aboutAction"), null);
@@ -182,6 +183,7 @@ public final void testSinglePlatform() throws Exception {
182183

183184
@Ignore
184185
@Test
186+
@SuppressWarnings("removal")
185187
public final void TODOtestBindingTransform() throws Exception {
186188
ParameterizedCommand addWS = new ParameterizedCommand(commandService
187189
.getCommand("org.eclipse.ui.navigate.addToWorkingSet"), null);

0 commit comments

Comments
 (0)