Skip to content

[GEF] Request should use relative mouse coordinates#1405

Open
ptziegler wants to merge 2 commits intoeclipse-windowbuilder:masterfrom
ptziegler:create-request
Open

[GEF] Request should use relative mouse coordinates#1405
ptziegler wants to merge 2 commits intoeclipse-windowbuilder:masterfrom
ptziegler:create-request

Conversation

@ptziegler
Copy link
Copy Markdown
Contributor

This adapts the getLocation() method of the DropRequest classes to return the relative mouse coordinates, rather than the absolute coordinates. These coordinates are translated, where necessary, by the new PolicyUtils.getAbsoluteLocation(...) method.

The GEF API expects relative coordinates for requests. So this step is necessary if we want to mix GEF classes with our classes. In addition to this, the getRelativeLocation() methods have now become obsolete and have been removed.

@ptziegler ptziegler added this to the 1.24.0 milestone Mar 24, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 24, 2026

Test Results

 2 720 files  ±0   2 720 suites  ±0   10h 39m 0s ⏱️ - 24m 42s
 7 018 tests ±0   6 953 ✅  -  7   58 💤 ±0   7 ❌ + 7 
28 072 runs  ±0  27 816 ✅  - 14  242 💤 ±0  14 ❌ +14 

For more details on these failures, see this check.

Results for commit 84f4886. ± Comparison against base commit 80df795.

♻️ This comment has been updated with latest results.

This adapts the `getLocation()` method of the `DropRequest` classes to
return the relative mouse coordinates, rather than the absolute
coordinates. These coordinates are translated, where necessary, by the
new `PolicyUtils.getAbsoluteLocation(...)` method.

The GEF API expects relative coordinates for requests. So this step is
necessary if we want to mix GEF classes with our classes. In addition to
this, the `getRelativeLocation()` methods have now become obsolete and
have been removed.
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.

1 participant