Skip to content

Commit ef0131c

Browse files
committed
Mark long-deprecated and unused SWT constants for removal
There are some unused methods/constants in SWT that are deprecated since long. So marking them for removal in future release.
1 parent 75a088f commit ef0131c

13 files changed

Lines changed: 21 additions & 21 deletions

File tree

bundles/org.eclipse.swt/Eclipse SWT Accessibility/cocoa/org/eclipse/swt/accessibility/Accessible.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public Accessible(Accessible parent) {
118118
* @since 3.5
119119
* @deprecated
120120
*/
121-
@Deprecated
121+
@Deprecated(forRemoval = true, since = "2026-06")
122122
protected Accessible() {
123123
}
124124

bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/Accessible.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public Accessible(Accessible parent) {
107107
* @since 3.5
108108
* @deprecated
109109
*/
110-
@Deprecated
110+
@Deprecated(forRemoval = true, since = "2026-06")
111111
protected Accessible() {
112112
}
113113

bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public Accessible(Accessible parent) {
117117
* @since 3.5
118118
* @deprecated
119119
*/
120-
@Deprecated
120+
@Deprecated(forRemoval = true, since = "2026-06")
121121
protected Accessible() {
122122
}
123123

bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/Browser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ public String getUrl () {
855855
* @since 3.3
856856
* @deprecated SWT.MOZILLA is deprecated and XULRunner as a browser renderer is no longer supported.
857857
*/
858-
@Deprecated
858+
@Deprecated(forRemoval = true, since = "2026-06")
859859
public Object getWebBrowser () {
860860
checkWidget();
861861
return webBrowser.getWebBrowser ();

bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public class CTabFolder extends Composite {
9090
*
9191
* @deprecated drop shadow border is no longer drawn in 3.0
9292
*/
93-
@Deprecated
93+
@Deprecated(forRemoval = true, since = "2026-06")
9494
public static RGB borderInsideRGB = new RGB (132, 130, 132);
9595
/**
9696
* Color of middle line of drop shadow border.
@@ -100,7 +100,7 @@ public class CTabFolder extends Composite {
100100
*
101101
* @deprecated drop shadow border is no longer drawn in 3.0
102102
*/
103-
@Deprecated
103+
@Deprecated(forRemoval = true, since = "2026-06")
104104
public static RGB borderMiddleRGB = new RGB (143, 141, 138);
105105
/**
106106
* Color of outermost line of drop shadow border.
@@ -110,7 +110,7 @@ public class CTabFolder extends Composite {
110110
*
111111
* @deprecated drop shadow border is no longer drawn in 3.0
112112
*/
113-
@Deprecated
113+
@Deprecated(forRemoval = true, since = "2026-06")
114114
public static RGB borderOutsideRGB = new RGB (171, 168, 165);
115115

116116
/* sizing, positioning */

bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabItem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public Control getControl () {
185185
*
186186
* @deprecated the disabled image is not used
187187
*/
188-
@Deprecated
188+
@Deprecated(forRemoval = true, since = "2026-06")
189189
public Image getDisabledImage(){
190190
checkWidget();
191191
return disabledImage;

bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/ViewForm.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public class ViewForm extends Composite {
8181
*
8282
* @deprecated
8383
*/
84-
@Deprecated
84+
@Deprecated(forRemoval = true, since = "2026-06")
8585
public static RGB borderInsideRGB = new RGB (132, 130, 132);
8686
/**
8787
* Color of middle line of drop shadow border.
@@ -91,7 +91,7 @@ public class ViewForm extends Composite {
9191
*
9292
* @deprecated
9393
*/
94-
@Deprecated
94+
@Deprecated(forRemoval = true, since = "2026-06")
9595
public static RGB borderMiddleRGB = new RGB (143, 141, 138);
9696
/**
9797
* Color of outermost line of drop shadow border.
@@ -101,7 +101,7 @@ public class ViewForm extends Composite {
101101
*
102102
* @deprecated
103103
*/
104-
@Deprecated
104+
@Deprecated(forRemoval = true, since = "2026-06")
105105
public static RGB borderOutsideRGB = new RGB (171, 168, 165);
106106

107107
// SWT widgets

bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Composite.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import org.eclipse.swt.*;
1818
import org.eclipse.swt.accessibility.*;
1919
import org.eclipse.swt.graphics.*;
20-
import org.eclipse.swt.internal.ExceptionStash;
20+
import org.eclipse.swt.internal.*;
2121
import org.eclipse.swt.internal.cocoa.*;
2222

2323
/**
@@ -216,7 +216,7 @@ boolean accessibilityIsIgnored(long id, long sel) {
216216
* @deprecated use {@link Composite#layout(Control[], int)} instead
217217
* @since 3.1
218218
*/
219-
@Deprecated
219+
@Deprecated(forRemoval = true, since = "2026-06")
220220
public void changed (Control[] changed) {
221221
layout(changed, SWT.DEFER);
222222
}

bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/FontDialog.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public boolean getEffectsVisible () {
116116
* @return the FontData for the selected font, or null
117117
* @deprecated use #getFontList ()
118118
*/
119-
@Deprecated
119+
@Deprecated(forRemoval = true, since = "2026-06")
120120
public FontData getFontData () {
121121
return fontData;
122122
}
@@ -231,7 +231,7 @@ public void setEffectsVisible(boolean visible) {
231231
* @param fontData the FontData to use initially, or null
232232
* @deprecated use #setFontList (FontData [])
233233
*/
234-
@Deprecated
234+
@Deprecated(forRemoval = true, since = "2026-06")
235235
public void setFontData (FontData fontData) {
236236
this.fontData = fontData;
237237
}

bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ Control[] _getChildren () {
238238
* @deprecated use {@link Composite#layout(Control[], int)} instead
239239
* @since 3.1
240240
*/
241-
@Deprecated
241+
@Deprecated(forRemoval = true, since = "2026-06")
242242
public void changed (Control[] changed) {
243243
layout(changed, SWT.DEFER);
244244
}

0 commit comments

Comments
 (0)