Replace manual image instantiation of Image in AsynchronousViewer and TreeModelLabelProvider with createImage() for better scaling of icons#1892
Conversation
a8d2162 to
cf93e41
Compare
HeikoKlare
left a comment
There was a problem hiding this comment.
Good catch, thank you! The change looks good.
@arunjose696 can you please remove the reference to the "external" vi-eclipse GitHub organization from the commit message?
cf93e41 to
f9b08d8
Compare
done. |
f9b08d8 to
568753f
Compare
|
This pull request changes some projects for the first time in this development cycle. An additional commit containing all the necessary changes was pushed to the top of this PR's branch. To obtain these changes (for example if you want to push more changes) either fetch from your fork or apply the git patch. Git patchFurther information are available in Common Build Issues - Missing version increments. |
fe0689f to
8245679
Compare
Replaced direct image creation using new Image(...,descriptor.getImageData()) descriptor.getImageData()) with descriptor.createImage() in AsynchronousViewer and TreeModelLabelProvider. This change makes icons now render sharply even at higher zoom levels (e.g.,225%).
8245679 to
65cf0a9
Compare


Replaced direct image creation using new Image(..., descriptor.getImageData()) with descriptor.createImage() in both AsynchronousViewer and TreeModelLabelProvider. This change ensures that icons now render sharply even at higher zoom levels (e.g., 225%).
Screenshots at 225% (I have circled in red in the first image for the icon that is being affected with the change)
Current Behavior
After This Change
Steps to Reproduce
To observe the change in AsynchronousViewer, run the Memory View in Eclipse CDT. The icons are shown during debugging when a C++ application is monitored with memory watches, and the variable’s memory address changes.
While it requires some effort to set up, the change itself is minimal and self-explanatory.
Contributes to: vi-eclipse/Eclipse-Platform#199