Skip to content

Commit 24141e3

Browse files
committed
This pr marks several unused deprecated methods/constants/classes for
removal.
1 parent dd5d18e commit 24141e3

File tree

12 files changed

+26
-26
lines changed

12 files changed

+26
-26
lines changed

bundles/org.eclipse.jface/src/org/eclipse/jface/action/MenuManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public Menu createMenuBar(Decorations parent) {
218218
* @return the menu control
219219
* @deprecated use <code>createMenuBar(Decorations)</code> instead.
220220
*/
221-
@Deprecated
221+
@Deprecated(forRemoval = true, since = "2025-12")
222222
public Menu createMenuBar(Shell parent) {
223223
return createMenuBar((Decorations) parent);
224224
}
@@ -535,7 +535,7 @@ public boolean isSeparator() {
535535
* @deprecated this method is no longer a part of the
536536
* {@link org.eclipse.jface.action.IContributionItem} API.
537537
*/
538-
@Deprecated
538+
@Deprecated(forRemoval = true, since = "2025-12")
539539
public boolean isSubstituteFor(IContributionItem item) {
540540
return this.equals(item);
541541
}

bundles/org.eclipse.jface/src/org/eclipse/jface/action/SubContributionManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ protected void itemRemoved(IContributionItem item) {
205205
* @return fetch all enumeration of wrappers for the item
206206
* @deprecated Use getItems(String value) instead.
207207
*/
208-
@Deprecated
208+
@Deprecated(forRemoval = true, since = "2025-12")
209209
public Enumeration<SubContributionItem> items() {
210210
final Iterator<SubContributionItem> i = mapItemToWrapper.values().iterator();
211211
return new Enumeration<>() {

bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/IDialogConstants.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ public interface IDialogConstants {
411411
* @deprecated This constant is no longer in use.
412412
* The button heights are now determined by the layout.
413413
*/
414-
@Deprecated
414+
@Deprecated(forRemoval = true, since = "2025-12")
415415
int BUTTON_HEIGHT = 14;
416416

417417
/**
@@ -425,7 +425,7 @@ public interface IDialogConstants {
425425
* @deprecated As of 3.9, this is deprecated as it is too big as DLU and got accidentally used
426426
* when setting pixel values
427427
*/
428-
@Deprecated
428+
@Deprecated(forRemoval = true, since = "2025-12")
429429
int INDENT = 21;
430430

431431
/**
@@ -434,7 +434,7 @@ public interface IDialogConstants {
434434
* @deprecated As of 3.9, this is deprecated as it is not clear what the meaning of a
435435
* "small indent" would be
436436
*/
437-
@Deprecated
437+
@Deprecated(forRemoval = true, since = "2025-12")
438438
int SMALL_INDENT = 7;
439439

440440
/**

bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/TitleAreaDialog.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public class TitleAreaDialog extends TrayDialog {
6969
* @since 2.0
7070
* @deprecated
7171
*/
72-
@Deprecated
72+
@Deprecated(forRemoval = true, since = "2025-12")
7373
public static final String INFO_MESSAGE = "INFO_MESSAGE"; //$NON-NLS-1$
7474

7575
/**
@@ -78,7 +78,7 @@ public class TitleAreaDialog extends TrayDialog {
7878
* @since 2.0
7979
* @deprecated
8080
*/
81-
@Deprecated
81+
@Deprecated(forRemoval = true, since = "2025-12")
8282
public static final String WARNING_MESSAGE = "WARNING_MESSAGE"; //$NON-NLS-1$
8383

8484
// Space between an image and a label
@@ -382,7 +382,7 @@ protected Point getInitialSize() {
382382
* @return Composite
383383
* @deprecated
384384
*/
385-
@Deprecated
385+
@Deprecated(forRemoval = true, since = "2025-12")
386386
protected Composite getTitleArea() {
387387
return getShell();
388388
}

bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/TextControlCreator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* @deprecated As of 3.3, clients should use {@link ControlDecoration} instead
2626
* of {@link DecoratedField}.
2727
*/
28-
@Deprecated
28+
@Deprecated(forRemoval = true, since = "2025-12")
2929
public class TextControlCreator implements IControlCreator {
3030

3131
@Deprecated

bundles/org.eclipse.jface/src/org/eclipse/jface/operation/ProgressMonitorUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public final class ProgressMonitorUtil {
4545
*
4646
* @since 3.13
4747
*/
48-
@Deprecated
48+
@Deprecated(forRemoval = true, since = "2025-12")
4949
public static org.eclipse.core.runtime.IProgressMonitorWithBlocking createAccumulatingProgressMonitor(
5050
IProgressMonitor monitor,
5151
Display display) {

bundles/org.eclipse.jface/src/org/eclipse/jface/resource/JFaceColors.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public static Color getInformationViewerForegroundColor(Display display) {
176176
* @deprecated JFaceColors no longer maintains a cache of colors. This job
177177
* is now handled by the ColorRegistry.
178178
*/
179-
@Deprecated
179+
@Deprecated(forRemoval = true, since = "2025-12")
180180
public static void clearColor(String colorName) {
181181
//no-op
182182
}
@@ -188,7 +188,7 @@ public static void clearColor(String colorName) {
188188
* @deprecated JFaceColors no longer maintains a cache of colors. This job
189189
* is now handled by the ColorRegistry.
190190
*/
191-
@Deprecated
191+
@Deprecated(forRemoval = true, since = "2025-12")
192192
public static void disposeColors() {
193193
//no-op
194194
}

bundles/org.eclipse.jface/src/org/eclipse/jface/resource/JFaceResources.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public class JFaceResources {
129129
*
130130
* @deprecated This font is not in use
131131
*/
132-
@Deprecated
132+
@Deprecated(forRemoval = true, since = "2025-12")
133133
public static final String VIEWER_FONT = "org.eclipse.jface.viewerfont"; //$NON-NLS-1$
134134

135135
/**
@@ -138,7 +138,7 @@ public class JFaceResources {
138138
*
139139
* @deprecated This font is not in use
140140
*/
141-
@Deprecated
141+
@Deprecated(forRemoval = true, since = "2025-12")
142142
public static final String WINDOW_FONT = "org.eclipse.jface.windowfont"; //$NON-NLS-1$
143143

144144
/**
@@ -564,7 +564,7 @@ public static FontDescriptor getTextFontDescriptor() {
564564
* @return the font
565565
* @deprecated This font is not in use
566566
*/
567-
@Deprecated
567+
@Deprecated(forRemoval = true, since = "2025-12")
568568
public static Font getViewerFont() {
569569
return getFontRegistry().get(VIEWER_FONT);
570570
}

bundles/org.eclipse.jface/src/org/eclipse/jface/resource/StringConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ public static String removeWhiteSpaces(String s) {
861861
* @return The string representation of the font data object.
862862
* @deprecated use asString(FontData)
863863
*/
864-
@Deprecated
864+
@Deprecated(forRemoval = true, since = "2025-12")
865865
public static String asDisplayableString(FontData value) {
866866
Assert.isNotNull(value);
867867
StringBuilder buffer = new StringBuilder();

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public class OpenStrategy {
7171
*
7272
* @deprecated
7373
*/
74-
@Deprecated
74+
@Deprecated(forRemoval = true, since = "2025-12")
7575
public static final int NO_TIMER = SINGLE_CLICK;
7676

7777
/** A single click will generate an open
@@ -80,15 +80,15 @@ public class OpenStrategy {
8080
*
8181
* @deprecated
8282
*/
83-
@Deprecated
83+
@Deprecated(forRemoval = true, since = "2025-12")
8484
public static final int FILE_EXPLORER = SINGLE_CLICK | ARROW_KEYS_OPEN;
8585

8686
/** Pointing to an item will change the selection
8787
* and a single click will gererate an open event
8888
*
8989
* @deprecated
9090
*/
91-
@Deprecated
91+
@Deprecated(forRemoval = true, since = "2025-12")
9292
public static final int ACTIVE_DESKTOP = SINGLE_CLICK | SELECT_ON_HOVER;
9393

9494
// Time used in FILE_EXPLORER and ACTIVE_DESKTOP

0 commit comments

Comments
 (0)