Skip to content

Commit 1a4d1a8

Browse files
eclipse-platform-botakurtakov
authored andcommitted
Perform clean code of bundles/org.eclipse.jface
1 parent 2040a17 commit 1a4d1a8

File tree

7 files changed

+21
-0
lines changed

7 files changed

+21
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public class AnimatorFactory {
3737
* @return the ControlAnimator.
3838
* @since 3.2
3939
*/
40+
@Deprecated
4041
public ControlAnimator createAnimator(Control control) {
4142
return new ControlAnimator(control);
4243
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
@Deprecated(forRemoval = true, since = "2025-03")
3232
public class ControlAnimator {
3333
/** the control that will be displayed or hidden */
34+
@Deprecated
3435
protected Control control;
3536

3637
/**
@@ -39,6 +40,7 @@ public class ControlAnimator {
3940
*
4041
* @param control the control that will be displayed or hidden.
4142
*/
43+
@Deprecated
4244
public ControlAnimator(Control control) {
4345
this.control = control;
4446
}
@@ -51,6 +53,7 @@ public ControlAnimator(Control control) {
5153
* @param visible <code>true</code> if the control should be shown,
5254
* and <code>false</code> otherwise.
5355
*/
56+
@Deprecated
5457
public void setVisible(boolean visible){
5558
// Using the SWT visible flag to determine if the control has
5659
// already been displayed or hidden. Return if already displayed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ private static class FieldDecorationData {
154154
/**
155155
* The hover used to show a decoration image's description.
156156
*/
157+
@Deprecated
157158
class Hover {
158159
private static final String EMPTY = ""; //$NON-NLS-1$
159160

@@ -349,6 +350,7 @@ void setNewShape() {
349350
*
350351
* @see IControlCreator
351352
*/
353+
@Deprecated
352354
public DecoratedField(Composite parent, int style,
353355
IControlCreator controlCreator) {
354356
this.form = createForm(parent);
@@ -394,6 +396,7 @@ public DecoratedField(Composite parent, int style,
394396
* when the associated control has focus, <code>false</code> if
395397
* it should always be shown.
396398
*/
399+
@Deprecated
397400
public void addFieldDecoration(FieldDecoration decoration, int position,
398401
boolean showOnFocus) {
399402
final Label label;
@@ -534,6 +537,7 @@ private void updateControlAttachments(int index, FieldDecorationData decData) {
534537
* @return the Control decorated by the receiver, or <code>null</code> if
535538
* none has been created yet.
536539
*/
540+
@Deprecated
537541
public Control getControl() {
538542
return control;
539543
}
@@ -546,6 +550,7 @@ public Control getControl() {
546550
* layout. This is typically not the control itself, since
547551
* additional controls are used to represent the decorations.
548552
*/
553+
@Deprecated
549554
public Control getLayoutControl() {
550555
return form;
551556
}
@@ -671,6 +676,7 @@ private FormData createFormDataForIndex(int index, Image image) {
671676
* the text to be shown in the info hover, or <code>null</code>
672677
* if no text should be shown.
673678
*/
679+
@Deprecated
674680
public void showHoverText(String text) {
675681
showHoverText(text, control);
676682
}
@@ -686,6 +692,7 @@ public void showHoverText(String text) {
686692
* <p>
687693
* This message has no effect if there is no current hover.
688694
*/
695+
@Deprecated
689696
public void hideHover() {
690697
if (hover != null) {
691698
hover.setVisible(false);
@@ -724,6 +731,7 @@ private void controlFocusLost() {
724731
* @param decoration
725732
* the decoration to be shown.
726733
*/
734+
@Deprecated
727735
public void showDecoration(FieldDecoration decoration) {
728736
FieldDecorationData data = getDecorationData(decoration);
729737
if (data == null) {
@@ -746,6 +754,7 @@ public void showDecoration(FieldDecoration decoration) {
746754
* @param decoration
747755
* the decoration to be hidden.
748756
*/
757+
@Deprecated
749758
public void hideDecoration(FieldDecoration decoration) {
750759
FieldDecorationData data = getDecorationData(decoration);
751760
if (data == null) {
@@ -767,6 +776,7 @@ public void hideDecoration(FieldDecoration decoration) {
767776
* @param decoration
768777
* the decoration to be hidden.
769778
*/
779+
@Deprecated
770780
public void updateDecoration(FieldDecoration decoration) {
771781
FieldDecorationData data = getDecorationData(decoration);
772782
if (data == null) {
@@ -852,6 +862,7 @@ private void showHoverText(String text, Control hoverNear) {
852862
*
853863
* @see FieldDecorationRegistry#getMaximumDecorationWidth()
854864
*/
865+
@Deprecated
855866
public void setUseMaximumDecorationWidth(boolean useMaximumWidth) {
856867
useMaxDecorationWidth = useMaximumWidth;
857868
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +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
8081
public static RGB computeErrorFieldBackgroundRGB(Control control) {
8182
/*
8283
* Use a 10% alpha of the error color applied on top of the widget
@@ -109,6 +110,7 @@ public static RGB computeErrorFieldBackgroundRGB(Control control) {
109110
* the control on which the background color will be used.
110111
* @return the color used to indicate that a field is required.
111112
*/
113+
@Deprecated
112114
public static Color getRequiredFieldBackgroundColor(Control control) {
113115
final Display display = control.getDisplay();
114116

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,6 @@ public interface IControlCreator {
3838
*
3939
* @return the Control that was created.
4040
*/
41+
@Deprecated
4142
public Control createControl(Composite parent, int style);
4243
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
@Deprecated
2929
public class TextControlCreator implements IControlCreator {
3030

31+
@Deprecated
3132
@Override
3233
public Control createControl(Composite parent, int style) {
3334
return new Text(parent, style);

bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ViewerSorter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public class ViewerSorter extends ViewerComparator {
5252
* Creates a new viewer sorter, which uses the default collator
5353
* to sort strings.
5454
*/
55+
@Deprecated
5556
public ViewerSorter() {
5657
this(Collator.getInstance());
5758
}
@@ -62,6 +63,7 @@ public ViewerSorter() {
6263
*
6364
* @param collator the collator to use to sort strings
6465
*/
66+
@Deprecated
6567
public ViewerSorter(Collator collator) {
6668
super(collator);
6769
this.collator = collator;

0 commit comments

Comments
 (0)