Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public class AnimatorFactory {
* @return the ControlAnimator.
* @since 3.2
*/
@Deprecated
public ControlAnimator createAnimator(Control control) {
return new ControlAnimator(control);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand All @@ -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;
}
Expand All @@ -51,6 +53,7 @@ public ControlAnimator(Control control) {
* @param visible <code>true</code> if the control should be shown,
* and <code>false</code> 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@
/**
* The hover used to show a decoration image's description.
*/
@Deprecated
class Hover {
private static final String EMPTY = ""; //$NON-NLS-1$

Expand All @@ -180,28 +181,28 @@
/**
* This info hover's shell.
*/
Shell hoverShell;

Check warning on line 184 in bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/DecoratedField.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Potential Programming Problem

LOW: The enclosing type DecoratedField.Hover is deprecated, perhaps this member should be marked as deprecated, too?

/**
* The info hover text.
*/
String text = EMPTY;

Check warning on line 189 in bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/DecoratedField.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Potential Programming Problem

LOW: The enclosing type DecoratedField.Hover is deprecated, perhaps this member should be marked as deprecated, too?

/**
* The region used to manage the shell shape
*/
Region region;

Check warning on line 194 in bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/DecoratedField.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Potential Programming Problem

LOW: The enclosing type DecoratedField.Hover is deprecated, perhaps this member should be marked as deprecated, too?

/**
* Boolean indicating whether the last computed polygon location had an
* arrow on left. (true if left, false if right).
*/
boolean arrowOnLeft = true;

Check warning on line 200 in bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/DecoratedField.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Potential Programming Problem

LOW: The enclosing type DecoratedField.Hover is deprecated, perhaps this member should be marked as deprecated, too?

/*
* Create a hover parented by the specified shell.
*/
Hover(Shell parent) {

Check warning on line 205 in bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/DecoratedField.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Potential Programming Problem

LOW: The enclosing type DecoratedField.Hover is deprecated, perhaps this member should be marked as deprecated, too?
final Display display = parent.getDisplay();
hoverShell = new Shell(parent, SWT.NO_TRIM | SWT.ON_TOP
| SWT.NO_FOCUS | SWT.TOOL);
Expand All @@ -228,7 +229,7 @@
* border is true, compute the polygon inset by 1-pixel border. Consult
* the arrowOnLeft flag to determine which side the arrow is on.
*/
int[] getPolygon(boolean border) {

Check warning on line 232 in bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/DecoratedField.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Potential Programming Problem

LOW: The enclosing type DecoratedField.Hover is deprecated, perhaps this member should be marked as deprecated, too?
Point e = getExtent();
int b = border ? 1 : 0;
if (arrowOnLeft) {
Expand All @@ -245,7 +246,7 @@
* Dispose the hover, it is no longer needed. Dispose any resources
* allocated by the hover.
*/
void dispose() {

Check warning on line 249 in bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/DecoratedField.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Potential Programming Problem

LOW: The enclosing type DecoratedField.Hover is deprecated, perhaps this member should be marked as deprecated, too?
if (!hoverShell.isDisposed()) {
hoverShell.dispose();
}
Expand All @@ -257,7 +258,7 @@
/*
* Set the visibility of the hover.
*/
void setVisible(boolean visible) {

Check warning on line 261 in bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/DecoratedField.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Potential Programming Problem

LOW: The enclosing type DecoratedField.Hover is deprecated, perhaps this member should be marked as deprecated, too?
if (visible) {
if (!hoverShell.isVisible()) {
hoverShell.setVisible(true);
Expand All @@ -272,7 +273,7 @@
* and location of the hover to hover near the specified control,
* pointing the arrow toward the target control.
*/
void setText(String t, Control hoverNear, Control targetControl) {

Check warning on line 276 in bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/DecoratedField.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Potential Programming Problem

LOW: The enclosing type DecoratedField.Hover is deprecated, perhaps this member should be marked as deprecated, too?
if (t == null) {
t = EMPTY;
}
Expand Down Expand Up @@ -303,14 +304,14 @@
/*
* Return whether or not the hover (shell) is visible.
*/
boolean isVisible() {

Check warning on line 307 in bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/DecoratedField.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Potential Programming Problem

LOW: The enclosing type DecoratedField.Hover is deprecated, perhaps this member should be marked as deprecated, too?
return hoverShell.isVisible();
}

/*
* Compute the extent of the hover for the current text.
*/
Point getExtent() {

Check warning on line 314 in bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/DecoratedField.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Potential Programming Problem

LOW: The enclosing type DecoratedField.Hover is deprecated, perhaps this member should be marked as deprecated, too?
GC gc = new GC(hoverShell);
Point e = gc.textExtent(text);
gc.dispose();
Expand All @@ -322,7 +323,7 @@
/*
* Compute a new shape for the hover shell.
*/
void setNewShape() {

Check warning on line 326 in bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/DecoratedField.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Potential Programming Problem

LOW: The enclosing type DecoratedField.Hover is deprecated, perhaps this member should be marked as deprecated, too?
Region oldRegion = region;
region = new Region();
region.add(getPolygon(false));
Expand All @@ -349,6 +350,7 @@
*
* @see IControlCreator
*/
@Deprecated
public DecoratedField(Composite parent, int style,
IControlCreator controlCreator) {
this.form = createForm(parent);
Expand Down Expand Up @@ -394,6 +396,7 @@
* when the associated control has focus, <code>false</code> if
* it should always be shown.
*/
@Deprecated
public void addFieldDecoration(FieldDecoration decoration, int position,
boolean showOnFocus) {
final Label label;
Expand Down Expand Up @@ -534,6 +537,7 @@
* @return the Control decorated by the receiver, or <code>null</code> if
* none has been created yet.
*/
@Deprecated
public Control getControl() {
return control;
}
Expand All @@ -546,6 +550,7 @@
* layout. This is typically not the control itself, since
* additional controls are used to represent the decorations.
*/
@Deprecated
public Control getLayoutControl() {
return form;
}
Expand Down Expand Up @@ -671,6 +676,7 @@
* the text to be shown in the info hover, or <code>null</code>
* if no text should be shown.
*/
@Deprecated
public void showHoverText(String text) {
showHoverText(text, control);
}
Expand All @@ -686,6 +692,7 @@
* <p>
* This message has no effect if there is no current hover.
*/
@Deprecated
public void hideHover() {
if (hover != null) {
hover.setVisible(false);
Expand Down Expand Up @@ -724,6 +731,7 @@
* @param decoration
* the decoration to be shown.
*/
@Deprecated
public void showDecoration(FieldDecoration decoration) {
FieldDecorationData data = getDecorationData(decoration);
if (data == null) {
Expand All @@ -746,6 +754,7 @@
* @param decoration
* the decoration to be hidden.
*/
@Deprecated
public void hideDecoration(FieldDecoration decoration) {
FieldDecorationData data = getDecorationData(decoration);
if (data == null) {
Expand All @@ -767,6 +776,7 @@
* @param decoration
* the decoration to be hidden.
*/
@Deprecated
public void updateDecoration(FieldDecoration decoration) {
FieldDecorationData data = getDecorationData(decoration);
if (data == null) {
Expand Down Expand Up @@ -852,6 +862,7 @@
*
* @see FieldDecorationRegistry#getMaximumDecorationWidth()
*/
@Deprecated
public void setUseMaximumDecorationWidth(boolean useMaximumWidth) {
useMaxDecorationWidth = useMaximumWidth;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ public interface IControlCreator {
*
* @return the Control that was created.
*/
@Deprecated
public Control createControl(Composite parent, int style);
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
@Deprecated
public class TextControlCreator implements IControlCreator {

@Deprecated
@Override
public Control createControl(Composite parent, int style) {
return new Text(parent, style);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand All @@ -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;
Expand Down
Loading