Skip to content

Conversation

@HeikoKlare
Copy link
Contributor

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.

This is not the cleanest solution as it is driven by tooling limitations, but I don't think we should unnecessarily keep those classes and I am currently stuck in debugging the tooling issue:

Since API tooling treats this change as a breaking API change despite the @noreference Javadoc tag, according API filters are required. This also means that any dependent bundle that reexports SWT and uses API tooling (such as org.eclipse.jface and org.eclipse.ui) need to be extended with API filters as well if we merge this:
image

@github-actions
Copy link
Contributor

github-actions bot commented Jul 24, 2025

Test Results

   546 files  ±0     546 suites  ±0   30m 32s ⏱️ + 1m 16s
 4 412 tests ±0   4 395 ✅ ±0   17 💤 ±0  0 ❌ ±0 
16 718 runs  ±0  16 591 ✅ ±0  127 💤 ±0  0 ❌ ±0 

Results for commit 5c09456. ± Comparison against base commit bef3ad7.

♻️ This comment has been updated with latest results.

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.
@HeikoKlare HeikoKlare force-pushed the monitor-aware-classes-cleanup branch from 24c6902 to 5c09456 Compare July 30, 2025 09:53
Copy link
Member

@fedejeanne fedejeanne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now.

We can remove the dummy classes later (no rush, they are not public)

@fedejeanne fedejeanne merged commit a7ee6ba into eclipse-platform:master Jul 30, 2025
21 of 22 checks passed
@fedejeanne fedejeanne deleted the monitor-aware-classes-cleanup branch July 30, 2025 11:23
ptziegler added a commit to ptziegler/gef-classic that referenced this pull request Aug 1, 2025
The MonitorAwareRectangle and MonitorAwarePoint classes have been made
package-private by SWT[1]. Because Draw2D re-exports SWT, this is
considered a breakage in API, which would require a major version
increment.

This change suppresses those errors, as they are not relevant for
Draw2D.

[1] eclipse-platform/eclipse.platform.swt#2349
ptziegler added a commit to eclipse-gef/gef-classic that referenced this pull request Aug 1, 2025
The MonitorAwareRectangle and MonitorAwarePoint classes have been made
package-private by SWT[1]. Because Draw2D re-exports SWT, this is
considered a breakage in API, which would require a major version
increment.

This change suppresses those errors, as they are not relevant for
Draw2D.

[1] eclipse-platform/eclipse.platform.swt#2349
ptziegler added a commit to ptziegler/gef-classic that referenced this pull request Aug 7, 2025
This is a follow-up to 50e27e3, this
time for the Zest plug-in. Because it also re-exports the SWT bundle, it
is also affected by the removal of the "MonitorAware" SWT classes [1].

This change suppresses those errors, as they are not relevant for
Zest.

[1] eclipse-platform/eclipse.platform.swt#2349
ptziegler added a commit to eclipse-gef/gef-classic that referenced this pull request Aug 7, 2025
This is a follow-up to 50e27e3, this
time for the Zest plug-in. Because it also re-exports the SWT bundle, it
is also affected by the removal of the "MonitorAware" SWT classes [1].

This change suppresses those errors, as they are not relevant for
Zest.

[1] eclipse-platform/eclipse.platform.swt#2349
HannesWell added a commit that referenced this pull request Aug 30, 2025
They remained as stubs to work around API-tools problems:
- #2349
HannesWell added a commit that referenced this pull request Aug 31, 2025
They remained as stubs to work around API-tools problems:
- #2349
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove MonitorAwarePoint / MonitorAwareRectangle

2 participants