Skip to content

Commit a7ee6ba

Browse files
HeikoKlarefedejeanne
authored andcommitted
Effectively remove replaced MonitorAwareRectangle/MonitorAwarePoint
The MonitorAwareRectangle/MonitorAwarePoint classes have been replaced by Rectangle.WithMonitor and Point.WithMonitor. They have been marked as deprecated but not removed because of issues with API tooling, however they were marked as non-API so they may be removed without any deprecation period. This change effectively removes the classes, only keeping package-internal stubs of them as otherwise API tooling currently fails.
1 parent bef3ad7 commit a7ee6ba

File tree

13 files changed

+150
-102
lines changed

13 files changed

+150
-102
lines changed

binaries/org.eclipse.swt.cocoa.macosx.aarch64/.settings/.api_filters

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,20 @@
88
</message_arguments>
99
</filter>
1010
</resource>
11+
<resource path="Eclipse SWT/common/org/eclipse/swt/graphics/MonitorAwarePoint.java" type="org.eclipse.swt.graphics.MonitorAwarePoint">
12+
<filter id="305365105">
13+
<message_arguments>
14+
<message_argument value="org.eclipse.swt.graphics.MonitorAwarePoint"/>
15+
<message_argument value="org.eclipse.swt.cocoa.macosx.aarch64_3.131.0"/>
16+
</message_arguments>
17+
</filter>
18+
</resource>
19+
<resource path="Eclipse SWT/common/org/eclipse/swt/graphics/MonitorAwareRectangle.java" type="org.eclipse.swt.graphics.MonitorAwareRectangle">
20+
<filter id="305365105">
21+
<message_arguments>
22+
<message_argument value="org.eclipse.swt.graphics.MonitorAwareRectangle"/>
23+
<message_argument value="org.eclipse.swt.cocoa.macosx.aarch64_3.131.0"/>
24+
</message_arguments>
25+
</filter>
26+
</resource>
1127
</component>

binaries/org.eclipse.swt.cocoa.macosx.x86_64/.settings/.api_filters

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,20 @@
88
</message_arguments>
99
</filter>
1010
</resource>
11+
<resource path="Eclipse SWT/common/org/eclipse/swt/graphics/MonitorAwarePoint.java" type="org.eclipse.swt.graphics.MonitorAwarePoint">
12+
<filter id="305365105">
13+
<message_arguments>
14+
<message_argument value="org.eclipse.swt.graphics.MonitorAwarePoint"/>
15+
<message_argument value="org.eclipse.swt.cocoa.macosx.x86_64_3.131.0"/>
16+
</message_arguments>
17+
</filter>
18+
</resource>
19+
<resource path="Eclipse SWT/common/org/eclipse/swt/graphics/MonitorAwareRectangle.java" type="org.eclipse.swt.graphics.MonitorAwareRectangle">
20+
<filter id="305365105">
21+
<message_arguments>
22+
<message_argument value="org.eclipse.swt.graphics.MonitorAwareRectangle"/>
23+
<message_argument value="org.eclipse.swt.cocoa.macosx.x86_64_3.131.0"/>
24+
</message_arguments>
25+
</filter>
26+
</resource>
1127
</component>

binaries/org.eclipse.swt.gtk.linux.aarch64/.settings/.api_filters

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,20 @@
88
</message_arguments>
99
</filter>
1010
</resource>
11+
<resource path="Eclipse SWT/common/org/eclipse/swt/graphics/MonitorAwarePoint.java" type="org.eclipse.swt.graphics.MonitorAwarePoint">
12+
<filter id="305365105">
13+
<message_arguments>
14+
<message_argument value="org.eclipse.swt.graphics.MonitorAwarePoint"/>
15+
<message_argument value="org.eclipse.swt.gtk.linux.aarch64_3.131.0"/>
16+
</message_arguments>
17+
</filter>
18+
</resource>
19+
<resource path="Eclipse SWT/common/org/eclipse/swt/graphics/MonitorAwareRectangle.java" type="org.eclipse.swt.graphics.MonitorAwareRectangle">
20+
<filter id="305365105">
21+
<message_arguments>
22+
<message_argument value="org.eclipse.swt.graphics.MonitorAwareRectangle"/>
23+
<message_argument value="org.eclipse.swt.gtk.linux.aarch64_3.131.0"/>
24+
</message_arguments>
25+
</filter>
26+
</resource>
1127
</component>

binaries/org.eclipse.swt.gtk.linux.loongarch64/.settings/.api_filters

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,20 @@
88
</message_arguments>
99
</filter>
1010
</resource>
11+
<resource path="Eclipse SWT/common/org/eclipse/swt/graphics/MonitorAwarePoint.java" type="org.eclipse.swt.graphics.MonitorAwarePoint">
12+
<filter id="305365105">
13+
<message_arguments>
14+
<message_argument value="org.eclipse.swt.graphics.MonitorAwarePoint"/>
15+
<message_argument value="org.eclipse.swt.gtk.linux.loongarch64_3.131.0"/>
16+
</message_arguments>
17+
</filter>
18+
</resource>
19+
<resource path="Eclipse SWT/common/org/eclipse/swt/graphics/MonitorAwareRectangle.java" type="org.eclipse.swt.graphics.MonitorAwareRectangle">
20+
<filter id="305365105">
21+
<message_arguments>
22+
<message_argument value="org.eclipse.swt.graphics.MonitorAwareRectangle"/>
23+
<message_argument value="org.eclipse.swt.gtk.linux.loongarch64_3.131.0"/>
24+
</message_arguments>
25+
</filter>
26+
</resource>
1127
</component>

binaries/org.eclipse.swt.gtk.linux.ppc64le/.settings/.api_filters

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,20 @@
88
</message_arguments>
99
</filter>
1010
</resource>
11+
<resource path="Eclipse SWT/common/org/eclipse/swt/graphics/MonitorAwarePoint.java" type="org.eclipse.swt.graphics.MonitorAwarePoint">
12+
<filter id="305365105">
13+
<message_arguments>
14+
<message_argument value="org.eclipse.swt.graphics.MonitorAwarePoint"/>
15+
<message_argument value="org.eclipse.swt.gtk.linux.ppc64le_3.131.0"/>
16+
</message_arguments>
17+
</filter>
18+
</resource>
19+
<resource path="Eclipse SWT/common/org/eclipse/swt/graphics/MonitorAwareRectangle.java" type="org.eclipse.swt.graphics.MonitorAwareRectangle">
20+
<filter id="305365105">
21+
<message_arguments>
22+
<message_argument value="org.eclipse.swt.graphics.MonitorAwareRectangle"/>
23+
<message_argument value="org.eclipse.swt.gtk.linux.ppc64le_3.131.0"/>
24+
</message_arguments>
25+
</filter>
26+
</resource>
1127
</component>

binaries/org.eclipse.swt.gtk.linux.riscv64/.settings/.api_filters

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,20 @@
88
</message_arguments>
99
</filter>
1010
</resource>
11+
<resource path="Eclipse SWT/common/org/eclipse/swt/graphics/MonitorAwarePoint.java" type="org.eclipse.swt.graphics.MonitorAwarePoint">
12+
<filter id="305365105">
13+
<message_arguments>
14+
<message_argument value="org.eclipse.swt.graphics.MonitorAwarePoint"/>
15+
<message_argument value="org.eclipse.swt.gtk.linux.riscv64_3.131.0"/>
16+
</message_arguments>
17+
</filter>
18+
</resource>
19+
<resource path="Eclipse SWT/common/org/eclipse/swt/graphics/MonitorAwareRectangle.java" type="org.eclipse.swt.graphics.MonitorAwareRectangle">
20+
<filter id="305365105">
21+
<message_arguments>
22+
<message_argument value="org.eclipse.swt.graphics.MonitorAwareRectangle"/>
23+
<message_argument value="org.eclipse.swt.gtk.linux.riscv64_3.131.0"/>
24+
</message_arguments>
25+
</filter>
26+
</resource>
1127
</component>

binaries/org.eclipse.swt.gtk.linux.x86_64/.settings/.api_filters

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,20 @@
88
</message_arguments>
99
</filter>
1010
</resource>
11+
<resource path="Eclipse SWT/common/org/eclipse/swt/graphics/MonitorAwarePoint.java" type="org.eclipse.swt.graphics.MonitorAwarePoint">
12+
<filter id="305365105">
13+
<message_arguments>
14+
<message_argument value="org.eclipse.swt.graphics.MonitorAwarePoint"/>
15+
<message_argument value="org.eclipse.swt.gtk.linux.x86_64_3.131.0"/>
16+
</message_arguments>
17+
</filter>
18+
</resource>
19+
<resource path="Eclipse SWT/common/org/eclipse/swt/graphics/MonitorAwareRectangle.java" type="org.eclipse.swt.graphics.MonitorAwareRectangle">
20+
<filter id="305365105">
21+
<message_arguments>
22+
<message_argument value="org.eclipse.swt.graphics.MonitorAwareRectangle"/>
23+
<message_argument value="org.eclipse.swt.gtk.linux.x86_64_3.131.0"/>
24+
</message_arguments>
25+
</filter>
26+
</resource>
1127
</component>

binaries/org.eclipse.swt.win32.win32.aarch64/.settings/.api_filters

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,4 +144,20 @@
144144
</message_arguments>
145145
</filter>
146146
</resource>
147+
<resource path="Eclipse SWT/common/org/eclipse/swt/graphics/MonitorAwarePoint.java" type="org.eclipse.swt.graphics.MonitorAwarePoint">
148+
<filter id="305365105">
149+
<message_arguments>
150+
<message_argument value="org.eclipse.swt.graphics.MonitorAwarePoint"/>
151+
<message_argument value="org.eclipse.swt.win32.win32.aarch64_3.131.0"/>
152+
</message_arguments>
153+
</filter>
154+
</resource>
155+
<resource path="Eclipse SWT/common/org/eclipse/swt/graphics/MonitorAwareRectangle.java" type="org.eclipse.swt.graphics.MonitorAwareRectangle">
156+
<filter id="305365105">
157+
<message_arguments>
158+
<message_argument value="org.eclipse.swt.graphics.MonitorAwareRectangle"/>
159+
<message_argument value="org.eclipse.swt.win32.win32.aarch64_3.131.0"/>
160+
</message_arguments>
161+
</filter>
162+
</resource>
147163
</component>

binaries/org.eclipse.swt.win32.win32.x86_64/.settings/.api_filters

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,22 @@
127127
</message_arguments>
128128
</filter>
129129
</resource>
130+
<resource path="Eclipse SWT/common/org/eclipse/swt/graphics/MonitorAwarePoint.java" type="org.eclipse.swt.graphics.MonitorAwarePoint">
131+
<filter id="305365105">
132+
<message_arguments>
133+
<message_argument value="org.eclipse.swt.graphics.MonitorAwarePoint"/>
134+
<message_argument value="org.eclipse.swt.win32.win32.x86_64_3.131.0"/>
135+
</message_arguments>
136+
</filter>
137+
</resource>
138+
<resource path="Eclipse SWT/common/org/eclipse/swt/graphics/MonitorAwareRectangle.java" type="org.eclipse.swt.graphics.MonitorAwareRectangle">
139+
<filter id="305365105">
140+
<message_arguments>
141+
<message_argument value="org.eclipse.swt.graphics.MonitorAwareRectangle"/>
142+
<message_argument value="org.eclipse.swt.win32.win32.x86_64_3.131.0"/>
143+
</message_arguments>
144+
</filter>
145+
</resource>
130146
<resource path="Eclipse SWT/win32/org/eclipse/swt/graphics/GCData.java" type="org.eclipse.swt.graphics.GCData">
131147
<filter id="627060751">
132148
<message_arguments>

bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/MonitorAwarePoint.java

Lines changed: 2 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -13,52 +13,8 @@
1313
*******************************************************************************/
1414
package org.eclipse.swt.graphics;
1515

16-
import org.eclipse.swt.widgets.*;
17-
1816
/**
19-
* Instances of this class represent {@link org.eclipse.swt.graphics.Point}
20-
* objects along with the context of the monitor in relation to which they are
21-
* placed on the display. The monitor awareness makes it easy to scale and
22-
* translate the points between pixels and points.
23-
*
24-
* @since 3.129
25-
* @noreference This class is not intended to be referenced by clients
26-
* @deprecated
17+
* Dummy to make API tooling happy
2718
*/
28-
@Deprecated(forRemoval = true, since = "2025-09")
29-
public final class MonitorAwarePoint extends Point {
30-
31-
private static final long serialVersionUID = 6077427420686999194L;
32-
33-
private final Monitor monitor;
34-
35-
/**
36-
* Constructs a new MonitorAwarePoint
37-
*
38-
* @param x the x coordinate of the point
39-
* @param y the y coordinate of the point
40-
* @param monitor the monitor with whose context the point is created
41-
*/
42-
public MonitorAwarePoint(int x, int y, Monitor monitor) {
43-
super(x, y);
44-
this.monitor = monitor;
45-
}
46-
47-
/**
48-
* {@return the monitor with whose context the instance is created}
49-
*/
50-
public Monitor getMonitor() {
51-
return monitor;
52-
}
53-
54-
@Override
55-
public boolean equals(Object object) {
56-
return super.equals(object);
57-
}
58-
59-
@Override
60-
public int hashCode() {
61-
return super.hashCode();
62-
}
63-
19+
final class MonitorAwarePoint {
6420
}

0 commit comments

Comments
 (0)