Skip to content

Commit 5ae934b

Browse files
committed
This pr marks several unused deprecated methods/constants for removal.
1 parent 60a8a9c commit 5ae934b

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ public String getTitle() {
307307
* @return the tool tip text, or <code>null</code> if none
308308
* @deprecated
309309
*/
310-
@Deprecated
310+
@Deprecated(forRemoval = true, since = "2026-03")
311311
protected final String getToolTipText(int widgetId) {
312312
// return nothing by default
313313
return null;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ protected Control createDialogArea(Composite parent) {
171171
* @return the error message label
172172
* @deprecated use setErrorMessage(String) instead
173173
*/
174-
@Deprecated
174+
@Deprecated(forRemoval = true, since = "2026-03")
175175
protected Label getErrorMessageLabel() {
176176
return null;
177177
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
* @since 3.2
4444
* @deprecated As of 3.3, this class is no longer necessary.
4545
*/
46-
@Deprecated
46+
@Deprecated(forRemoval = true, since = "2026-03")
4747
public class FieldAssistColors {
4848

4949
private static boolean DEBUG = false;
@@ -77,7 +77,7 @@ public class FieldAssistColors {
7777
* @return the RGB value indicating a background color appropriate for
7878
* indicating an error in the control.
7979
*/
80-
@Deprecated
80+
@Deprecated(forRemoval = true, since = "2026-03")
8181
public static RGB computeErrorFieldBackgroundRGB(Control control) {
8282
/*
8383
* Use a 10% alpha of the error color applied on top of the widget
@@ -110,7 +110,7 @@ public static RGB computeErrorFieldBackgroundRGB(Control control) {
110110
* the control on which the background color will be used.
111111
* @return the color used to indicate that a field is required.
112112
*/
113-
@Deprecated
113+
@Deprecated(forRemoval = true, since = "2026-03")
114114
public static Color getRequiredFieldBackgroundColor(Control control) {
115115
final Display display = control.getDisplay();
116116

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 = "2026-03")
2929
public class TextControlCreator implements IControlCreator {
3030

3131
@Deprecated

bundles/org.eclipse.jface/src/org/eclipse/jface/preference/FieldEditor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ public String getPreferenceName() {
426426
* @return the preference page, or <code>null</code> if none
427427
* @deprecated use #getPage()
428428
*/
429-
@Deprecated
429+
@Deprecated(forRemoval = true, since = "2026-03")
430430
protected PreferencePage getPreferencePage() {
431431
if(page != null && page instanceof PreferencePage) {
432432
return (PreferencePage) page;
@@ -591,7 +591,7 @@ public void setPreferenceName(String name) {
591591
* @param preferencePage the preference page, or <code>null</code> if none
592592
* @deprecated use #setPage(DialogPage)
593593
*/
594-
@Deprecated
594+
@Deprecated(forRemoval = true, since = "2026-03")
595595
public void setPreferencePage(PreferencePage preferencePage) {
596596
setPage(preferencePage);
597597
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public abstract class ColorDescriptor extends DeviceResourceDescriptor<Color> {
4141
* original Color's constructor.
4242
* @return a newly created ColorDescriptor that describes the given Color.
4343
*/
44-
@Deprecated
44+
@Deprecated(forRemoval = true, since = "2026-03")
4545
public static ColorDescriptor createFrom(Color toCreate, Device originalDevice) {
4646
return new RGBColorDescriptor(toCreate);
4747
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ protected int getTransparentPixel() {
434434
* @deprecated This method doesn't make sense and should never have been
435435
* made API.
436436
*/
437-
@Deprecated
437+
@Deprecated(forRemoval = true, since = "2026-03")
438438
protected void setImageData(ImageData imageData) {
439439
this.imageData = imageData;
440440
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public abstract class FontDescriptor extends DeviceResourceDescriptor<Font> {
4242
* the font's constructor when it was first created.
4343
* @return a newly created FontDescriptor.
4444
*/
45-
@Deprecated
45+
@Deprecated(forRemoval = true, since = "2026-03")
4646
public static FontDescriptor createFrom(Font font, Device originalDevice) {
4747
return new ArrayFontDescriptor(font);
4848
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public static ImageDescriptor createWithFlags(ImageDescriptor originalImage, int
183183
* @param theDevice the device that was used to create the Image
184184
* @return a newly created image descriptor
185185
*/
186-
@Deprecated
186+
@Deprecated(forRemoval = true, since = "2026-03")
187187
public static ImageDescriptor createFromImage(Image img, Device theDevice) {
188188
return new ImageDataImageDescriptor(img);
189189
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ public final Font createFont(FontDescriptor descriptor) {
305305
* @param descriptor description of the font to destroy
306306
* @deprecated use {@link #destroy(DeviceResourceDescriptor)} instead
307307
*/
308-
@Deprecated(since = "3.31")
308+
@Deprecated(forRemoval = true, since = "2026-03")
309309
public final void destroyFont(FontDescriptor descriptor) {
310310
destroy(descriptor);
311311
}

0 commit comments

Comments
 (0)