Skip to content

Conversation

@ptziegler
Copy link
Contributor

This replaces the TargetFigureFindVisitor used in the findTargetHandle() method with call to findFigureAt(), which is provided by Draw2D. A custom filter is used to restrict the search to only accept Handles and to only look in the specified layer.

@ptziegler ptziegler added this to the 1.21.0 milestone Jun 19, 2025
@ptziegler
Copy link
Contributor Author

Extracted from #1130 because both changes are quite tricky.

@ptziegler ptziegler force-pushed the gef-target-handle branch from 2581c2e to 1f3b5d5 Compare June 19, 2025 13:54
@ptziegler ptziegler force-pushed the gef-target-handle branch from 1f3b5d5 to 0de0d47 Compare June 24, 2025 16:24
@ptziegler
Copy link
Contributor Author

It was a little bit of a challenge to adapt the tests to the way the findFigureAt() method works. This method expects relative coordinates wrt. to the horizontal and vertical scrolling, while our visitor expects absolute coordintates.

Furthermore, it is only possible to select figures within the visible area, which is a known limitation of GEF that is also affecting other testing tools. To get around this, our tester has to always scroll the viewer to make sure the figure is visible.

This replaces the TargetFigureFindVisitor used in the findTargetHandle()
method with call to findFigureAt(), which is provided by Draw2D. A
custom filter is used to restrict the search to only accept Handles and
to only look in the specified layer.
@ptziegler ptziegler force-pushed the gef-target-handle branch from 0de0d47 to 7fcb3ed Compare June 24, 2025 16:48
@ptziegler ptziegler merged commit 181f377 into eclipse-windowbuilder:master Jun 24, 2025
8 checks passed
@ptziegler ptziegler deleted the gef-target-handle branch June 24, 2025 18:25
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