Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typify dirtyRegion map in UpdateListener and UpdateManager #238

Merged
merged 1 commit into from
Aug 13, 2023

Conversation

ptziegler
Copy link
Contributor

This change adjusts the notifyPainting() method in UpdateListener and the firePainting() method in UpdateManager to expect a generic map of (IFigure, Rectangle) pairs, rather than a raw map.

This should not cause errors in client code, as calling or overwriting this method can still be done using a raw map (which will create a "unchecked or unsafe operations" warning).

@ptziegler
Copy link
Contributor Author

#155

@github-actions
Copy link

github-actions bot commented Aug 12, 2023

Unit Test Results

    9 files      9 suites   18s ⏱️
307 tests 305 ✔️ 2 💤 0
921 runs  915 ✔️ 6 💤 0

Results for commit e270f0d.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@azoitl azoitl left a comment

Choose a reason for hiding this comment

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

I've tested your PR with GEF Classic's logic editor, 4diac IDE and GMF runtime. In general it looks good. Only one small question below.

This change adjusts the notifyPainting() method in UpdateListener and
the firePainting() method in UpdateManager to expect a generic map of
(IFigure, Rectangle) pairs, rather than a raw map.

This should not cause errors in client code, as calling or overwriting
this method can still be done using a raw map (which will create a
"unchecked or unsafe operations" warning).

Internal usage has been changed from iterators to the for-each paradigm.
@azoitl azoitl merged commit 4887a44 into eclipse:master Aug 13, 2023
4 checks passed
@azoitl azoitl added this to the 3.17.0 milestone Aug 13, 2023
@ptziegler ptziegler deleted the typify-update-manager branch December 18, 2023 09:21
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.

2 participants