Fix code mining tests on windows if native zoom has value 200#3563
Conversation
|
@travkin79 could you please do me a favor and check if the code minings tests are now also green on your system? |
|
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. |
|
Hi @tobiasmelcher,
Sure, I'll check the tests today. |
|
Hi @tobiasmelcher,
I could also add the stacktraces and screenshots if that helps. P.S.: For some reason, I had some compilation errors at first (see screenshot). I had to revert some of the last changes to make it compile again. Do I have to update or re-configure something? It seems, the API changed.
|
Thanks a lot @travkin79 for the very fast response. Do you know which scaling factor you have set in windows? Which |
It depends on what the GC is created on. A GC on a display is actually problematic as there is no uniform zoom throughout the display anymore (as every monitor has its own zoom). However, in this case you seem to create a GC on a control to copy it's contents. To the best of my knowledge, that should work. But I would expect that you only get a proper result when retrieving the image data of the image passed to Note that there is currently no good, uniform concept for how to test functionality at a specific monitor zoom. Modifying properties like the native zoom of a control or the zoom in One approach that might work is to not modify any zoom data (such as the native zoom of control/GC) but to use |
Thanks a lot for the response @HeikoKlare . The image was only then properly filled after calling |
4d09505 to
60e3195
Compare
|
Hi @tobiasmelcher,
On my machine |
|
I was able to remove the |
Note that this value is not very meaningful on Windows anymore (with monitor-specific scaling). Most of its consumers have been replaced. It is basically only there as a "best guess" for cases where some initial zoom is necessary when initializing something (like a resource). Precisely, this value will be updated whenever a shell is moved to a monitor with a different zoom or if the zoom of a monitor changes. This means, if you have multiple shells, the value of |
c3119c1 to
94fe4e0
Compare
|
with [94fe4e0] I switched from |
|
That somehow does not compile: |
|
See #3563 (comment)
|
Hi @tobiasmelcher,
(Locally, I had to revert the version bumps for Eclipse 4.39 and some other changes that lead to compile errors, see comment #3563 (comment).) |
|
I think you need to ensure you pull all git repositories in your workspace, update your target platform, and ensure you changes are based on master. Are you using the Oomph setup? |
I switched to |
Can you explain why |
Ok, maybe I then misunderstood your first comment. At SAP, we have some magic test setup which is moving the shells to the non main-window. I thought that this logic is also done by the eclipse tests. I unterstood from your first comment, that the Shell zooming level is updated once the shell is moved and |
My statment was probably a bit misleading: When having a single shell, Since tests will usually only use a single shell, you should be safe to use |
Great, thanks a lot for the clarification. I will then switch back to |
|
Hi @merks,
Thank you for the hint. I'm using the oomph installer that installed me the latest Eclipse IDE (originally it was 4.38) and checked out the platform.ui projects. Since a few days ago, when starting Eclipse, I get the following screen suggesting an early redirect to Eclipse 4.39. I skipped it, since I was note sure, if I need Eclipse 4.39 already. Today, I performed the redirect suggested by oomph and the compilation issues are gone.
|
28f9407 to
9c6734d
Compare











No description provided.