Skip to content

Commit 614510a

Browse files
committed
This pr marks several unused deprecated methods/constants/classes.
1 parent 2ab6962 commit 614510a

File tree

15 files changed

+31
-31
lines changed

15 files changed

+31
-31
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/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 = "2025-12")
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 = "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
@Override

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/ImageDataImageDescriptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class ImageDataImageDescriptor extends ImageDescriptor {
4646
* @param data describing the image
4747
* @deprecated use {@link #ImageDataImageDescriptor(ImageDataProvider)}
4848
*/
49-
@Deprecated
49+
@Deprecated(forRemoval = true, since = "2025-12")
5050
ImageDataImageDescriptor(ImageData data) {
5151
this(zoom -> zoom == 100 ? data : null);
5252
}

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

Lines changed: 3 additions & 3 deletions
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 = "2025-12")
187187
public static ImageDescriptor createFromImage(Image img, Device theDevice) {
188188
return new ImageDataImageDescriptor(img);
189189
}
@@ -261,7 +261,7 @@ public static ImageDescriptor createFromURI(URI uriIconPath) {
261261
* @since 3.19
262262
* @deprecated Use {@link #createFromURI(URI)} instead.
263263
*/
264-
@Deprecated(since = "3.36", forRemoval = true)
264+
@Deprecated(forRemoval = true, since = "2025-12")
265265
public ImageDescriptor imageDescriptorFromURI(URI uriIconPath) {
266266
return createFromURI(uriIconPath);
267267
}
@@ -451,7 +451,7 @@ public ImageData getImageData(int zoom) {
451451
* {@link #getImageData(int)} to prevent endless cycle between the 2
452452
* implementation in this class since 2017.</b>
453453
*/
454-
@Deprecated
454+
@Deprecated(forRemoval = true, since = "2025-12")
455455
public ImageData getImageData() {
456456
return getImageData(100);
457457
}

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
}

0 commit comments

Comments
 (0)