Skip to content

Commit aa37d8d

Browse files
committed
This pr marks several unused deprecated methods/constants for removal.
1 parent 0183152 commit aa37d8d

19 files changed

+33
-33
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/IDialogConstants.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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 = "2026-03")
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 = "2026-03")
438438
int SMALL_INDENT = 7;
439439

440440
/**

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/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 = "2026-03")
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 = "2026-03")
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 = "2026-03")
386386
protected Composite getTitleArea() {
387387
return getShell();
388388
}

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/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 = "2026-03")
4949
public static org.eclipse.core.runtime.IProgressMonitorWithBlocking createAccumulatingProgressMonitor(
5050
IProgressMonitor monitor,
5151
Display display) {

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
}

0 commit comments

Comments
 (0)