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 @@ -48,6 +48,7 @@ public class TypedListener implements Listener {
/**
* The receiver's event listener
*/
@Deprecated(forRemoval = true, since = "3.129.0 (removal in 2027-03 or later)")
protected EventListener eventListener;

/**
Expand Down Expand Up @@ -82,6 +83,7 @@ public TypedListener (SWTEventListener listener) {
* @noreference This method is not intended to be referenced by clients.
*/

@Deprecated(forRemoval = true, since = "3.129.0 (removal in 2027-03 or later)")
public TypedListener (EventListener listener) {
eventListener = listener;
}
Expand All @@ -99,6 +101,7 @@ public TypedListener (EventListener listener) {
*
* @noreference This method is not intended to be referenced by clients.
*/
@Deprecated(forRemoval = true, since = "3.129.0 (removal in 2027-03 or later)")
public EventListener getEventListener () {
// At the moment all typed listeners implement SWTEventListener but that interface is intended to be removed in the future and then they will only implement EventListener.
// This method should not be called for typed listeners listeners that only implement EventListener.
Expand All @@ -119,6 +122,7 @@ public EventListener getEventListener () {
*
* @noreference This method is not intended to be referenced by clients.
*/
@Deprecated(forRemoval = true, since = "3.129.0 (removal in 2027-03 or later)")
@Override
public void handleEvent (Event e) {
switch (e.type) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ final class LegacySWTFontRegistry implements SWTFontRegistry {
private Map<FontData, Font> fontsMap = new HashMap<>();
private Device device;

@Deprecated(forRemoval= true, since= "2025-09")
LegacySWTFontRegistry(Device device) {
this.device = device;
}

@Deprecated(forRemoval= true, since= "2025-09")
@Override
public Font getSystemFont(int zoom) {
if (fontsMap.containsKey(KEY_SYSTEM_FONTS)) {
Expand All @@ -61,6 +63,7 @@ public Font getSystemFont(int zoom) {
return font;
}

@Deprecated(forRemoval= true, since= "2025-09")
@Override
public Font getFont(FontData fontData, int zoom) {
if (fontsMap.containsKey(fontData)) {
Expand All @@ -77,6 +80,7 @@ public Font getFont(FontData fontData, int zoom) {
return font;
}

@Deprecated(forRemoval= true, since= "2025-09")
@Override
public Font getFont(long fontHandle, int zoom) {
return Font.win32_new(device, fontHandle, zoom);
Expand All @@ -88,6 +92,7 @@ private Font registerFont(FontData fontData, Font font) {
return font;
}

@Deprecated(forRemoval= true, since= "2025-09")
@Override
public void dispose() {
for (Font font : fontsMap.values()) {
Expand Down
Loading