diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/AnimatorFactory.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/AnimatorFactory.java index 10e950d6e14..c2358cf8749 100644 --- a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/AnimatorFactory.java +++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/AnimatorFactory.java @@ -37,6 +37,7 @@ public class AnimatorFactory { * @return the ControlAnimator. * @since 3.2 */ + @Deprecated public ControlAnimator createAnimator(Control control) { return new ControlAnimator(control); } diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ControlAnimator.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ControlAnimator.java index 0efb3d653c7..d258079baf0 100644 --- a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ControlAnimator.java +++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ControlAnimator.java @@ -31,6 +31,7 @@ @Deprecated(forRemoval = true, since = "2025-03") public class ControlAnimator { /** the control that will be displayed or hidden */ + @Deprecated protected Control control; /** @@ -39,6 +40,7 @@ public class ControlAnimator { * * @param control the control that will be displayed or hidden. */ + @Deprecated public ControlAnimator(Control control) { this.control = control; } @@ -51,6 +53,7 @@ public ControlAnimator(Control control) { * @param visible true if the control should be shown, * and false otherwise. */ + @Deprecated public void setVisible(boolean visible){ // Using the SWT visible flag to determine if the control has // already been displayed or hidden. Return if already displayed diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/DecoratedField.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/DecoratedField.java index e6b4048651d..6c27b3aca79 100644 --- a/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/DecoratedField.java +++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/DecoratedField.java @@ -154,6 +154,7 @@ private static class FieldDecorationData { /** * The hover used to show a decoration image's description. */ + @Deprecated class Hover { private static final String EMPTY = ""; //$NON-NLS-1$ @@ -349,6 +350,7 @@ void setNewShape() { * * @see IControlCreator */ + @Deprecated public DecoratedField(Composite parent, int style, IControlCreator controlCreator) { this.form = createForm(parent); @@ -394,6 +396,7 @@ public DecoratedField(Composite parent, int style, * when the associated control has focus, false if * it should always be shown. */ + @Deprecated public void addFieldDecoration(FieldDecoration decoration, int position, boolean showOnFocus) { final Label label; @@ -534,6 +537,7 @@ private void updateControlAttachments(int index, FieldDecorationData decData) { * @return the Control decorated by the receiver, or null if * none has been created yet. */ + @Deprecated public Control getControl() { return control; } @@ -546,6 +550,7 @@ public Control getControl() { * layout. This is typically not the control itself, since * additional controls are used to represent the decorations. */ + @Deprecated public Control getLayoutControl() { return form; } @@ -671,6 +676,7 @@ private FormData createFormDataForIndex(int index, Image image) { * the text to be shown in the info hover, or null * if no text should be shown. */ + @Deprecated public void showHoverText(String text) { showHoverText(text, control); } @@ -686,6 +692,7 @@ public void showHoverText(String text) { *

* This message has no effect if there is no current hover. */ + @Deprecated public void hideHover() { if (hover != null) { hover.setVisible(false); @@ -724,6 +731,7 @@ private void controlFocusLost() { * @param decoration * the decoration to be shown. */ + @Deprecated public void showDecoration(FieldDecoration decoration) { FieldDecorationData data = getDecorationData(decoration); if (data == null) { @@ -746,6 +754,7 @@ public void showDecoration(FieldDecoration decoration) { * @param decoration * the decoration to be hidden. */ + @Deprecated public void hideDecoration(FieldDecoration decoration) { FieldDecorationData data = getDecorationData(decoration); if (data == null) { @@ -767,6 +776,7 @@ public void hideDecoration(FieldDecoration decoration) { * @param decoration * the decoration to be hidden. */ + @Deprecated public void updateDecoration(FieldDecoration decoration) { FieldDecorationData data = getDecorationData(decoration); if (data == null) { @@ -852,6 +862,7 @@ private void showHoverText(String text, Control hoverNear) { * * @see FieldDecorationRegistry#getMaximumDecorationWidth() */ + @Deprecated public void setUseMaximumDecorationWidth(boolean useMaximumWidth) { useMaxDecorationWidth = useMaximumWidth; } diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/FieldAssistColors.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/FieldAssistColors.java index 2cc08563508..64d71454d4b 100644 --- a/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/FieldAssistColors.java +++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/FieldAssistColors.java @@ -77,6 +77,7 @@ public class FieldAssistColors { * @return the RGB value indicating a background color appropriate for * indicating an error in the control. */ + @Deprecated public static RGB computeErrorFieldBackgroundRGB(Control control) { /* * Use a 10% alpha of the error color applied on top of the widget @@ -109,6 +110,7 @@ public static RGB computeErrorFieldBackgroundRGB(Control control) { * the control on which the background color will be used. * @return the color used to indicate that a field is required. */ + @Deprecated public static Color getRequiredFieldBackgroundColor(Control control) { final Display display = control.getDisplay(); diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/IControlCreator.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/IControlCreator.java index 02c82ad7aaa..bf470110894 100644 --- a/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/IControlCreator.java +++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/IControlCreator.java @@ -38,5 +38,6 @@ public interface IControlCreator { * * @return the Control that was created. */ + @Deprecated public Control createControl(Composite parent, int style); } diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/TextControlCreator.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/TextControlCreator.java index 6143875fce7..208e5b2fa29 100644 --- a/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/TextControlCreator.java +++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/TextControlCreator.java @@ -28,6 +28,7 @@ @Deprecated public class TextControlCreator implements IControlCreator { + @Deprecated @Override public Control createControl(Composite parent, int style) { return new Text(parent, style); diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ViewerSorter.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ViewerSorter.java index 9a7b5c7c61f..58c9088a5ee 100644 --- a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ViewerSorter.java +++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ViewerSorter.java @@ -52,6 +52,7 @@ public class ViewerSorter extends ViewerComparator { * Creates a new viewer sorter, which uses the default collator * to sort strings. */ + @Deprecated public ViewerSorter() { this(Collator.getInstance()); } @@ -62,6 +63,7 @@ public ViewerSorter() { * * @param collator the collator to use to sort strings */ + @Deprecated public ViewerSorter(Collator collator) { super(collator); this.collator = collator;