Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 559096 - Display design upside down with MacosX Catalina
Summary: Display design upside down with MacosX Catalina
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: WindowBuilder (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-13 04:43 EST by Olivier Prouvost CLA
Modified: 2021-06-04 16:45 EDT (History)
4 users (show)

See Also:


Attachments
Screenshhot (14.98 KB, image/png)
2020-01-15 02:57 EST, Dalibor Krleža CLA
no flags Details
Where to get it (51.21 KB, image/png)
2020-01-21 05:29 EST, Wim Jongman CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Prouvost CLA 2020-01-13 04:43:16 EST
As with Hight Sierra and Mojave, the bug still appear on new version of Mac OS X. 

It should now be fixed in this way : if version is before HighSierra do not flip the Image...  to avoid to find it every year...

This bug history is in bug #526091
Comment 1 Dalibor Krleža CLA 2020-01-15 02:57:42 EST
Created attachment 281499 [details]
Screenshhot
Comment 2 Dalibor Krleža CLA 2020-01-15 02:58:24 EST
I can verify that this bug still exists on eclipse 2019-12, WB 1.9.2, MacOS 10.15.2.
Comment 3 Wim Jongman CLA 2020-01-15 05:41:14 EST
Are you going to supply a patch, Olivier?
Comment 4 Olivier Prouvost CLA 2020-01-20 08:52:07 EST
yes I am on it ... 

I juste installed Catalina tonight !
Comment 5 Eclipse Genie CLA 2020-01-20 09:00:08 EST
New Gerrit change created: https://git.eclipse.org/r/156182
Comment 6 Olivier Prouvost CLA 2020-01-20 09:04:51 EST
That works for me.. 

Build is ok. 

But download page is still on 1.9.2.

Wim are you committer to fix it and make it available using market place ? I had the same problem for the previous fixes...
Comment 7 Olivier Prouvost CLA 2020-01-20 09:05:10 EST
See this page : 

https://www.eclipse.org/windowbuilder/download.php
Comment 8 Olivier Prouvost CLA 2020-01-20 09:08:17 EST
And market place is still in 1.9.1 release... ?? 

I don't have the access to update it ...
Comment 9 Wim Jongman CLA 2020-01-20 09:20:50 EST
(In reply to Olivier Prouvost from comment #8)
> And market place is still in 1.9.1 release... ?? 


Version of markeplace points to latest (1.9.2). I am working on the new release.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=553416

> 
> I don't have the access to update it ...

Au contraire..
Comment 10 Wim Jongman CLA 2020-01-20 09:30:53 EST
(In reply to Eclipse Genie from comment #5)
> New Gerrit change created: https://git.eclipse.org/r/156182

About this patch, it is going to fail again with the next OS update. I think we may now assume that they are not going to flip the screen back again.

With this in mind we can make a more permanent solution. 

E.g. 

    int version = Integer.newInt(OS.version.split("\\.")[0]);
    int mod = Integer.newInt(OS.version.split("\\.")[1]);
    if(version > 10  ||  (version == 10 && mod => 13)) 
         flip
    else
         noflip


Cheers,

Wim
Comment 11 Olivier Prouvost CLA 2020-01-20 09:33:17 EST
I agree, but I am not sure that it will not work again in the next release... 

It is up to you... you would prefer a solution where we check the version number after the '.' ? 

This is what I wanted to do (see comments), but finally I am not sure they will not change again later... 

Let me know
Comment 12 Wim Jongman CLA 2020-01-20 09:55:08 EST
(In reply to Olivier Prouvost from comment #11)
> I agree, but I am not sure that it will not work again in the next
> release... 
> 
> It is up to you... you would prefer a solution where we check the version
> number after the '.' ? 
> 
> This is what I wanted to do (see comments), but finally I am not sure they
> will not change again later... 
> 
> Let me know

Looking at the OSX history [1], I think we are safe with this approach.

Of course, some protecting code would be in place.

In addition, we can also supply a "flip" switch -Dwindowbuilder.osx.flip=true/false in case someone needs to make quick patch.


[1] https://en.wikipedia.org/wiki/MacOS
Comment 13 Olivier Prouvost CLA 2020-01-20 09:56:28 EST
Ok, 

I will fix it... 

Good idea for the flip switch :)
Comment 14 Olivier Prouvost CLA 2020-01-20 13:11:39 EST
I made the change.. sounds good :)
Comment 15 Olivier Prouvost CLA 2020-01-20 13:16:05 EST
While it is not provided on marketplace, and if this is urgent to get the new version, you can proceed as followed : 

* git clone git://git.eclipse.org/gitroot/windowbuilder/org.eclipse.windowbuilder.git
* cd org.eclipse.windowbuilder
* mvn clean install

Then install the updated p2 site found in : 

org.eclipse.windowbuilder/org.eclipse.wb.releng.updatesite/target/org.eclipse.wb.releng.updatesite-1.0.0-SNAPSHOT.zip

I guess Wim will provide it sooner or later on the market place :)
Comment 16 Wim Jongman CLA 2020-01-20 13:28:42 EST
(In reply to Olivier Prouvost from comment #15)
> While it is not provided on marketplace, and if this is urgent to get the
> new version, you can proceed as followed : 
> 
> * git clone
> git://git.eclipse.org/gitroot/windowbuilder/org.eclipse.windowbuilder.git
> * cd org.eclipse.windowbuilder
> * mvn clean install
> 
> Then install the updated p2 site found in : 
> 
> org.eclipse.windowbuilder/org.eclipse.wb.releng.updatesite/target/org.
> eclipse.wb.releng.updatesite-1.0.0-SNAPSHOT.zip
> 
> I guess Wim will provide it sooner or later on the market place :)

That is not needed. The last successful build is also on the download page.
Comment 17 Olivier Prouvost CLA 2020-01-21 05:01:43 EST
Sorry Wim, I must reopen the bug.... 

 I can't find the latest version on the download page.

If you go on this page : https://www.eclipse.org/windowbuilder/download.php

you can see the Latest (1.9.2), and its update site URL is :
 
https://download.eclipse.org/windowbuilder/latest/


This update site contains only the 1.9.2... 

If you go on market place, only 1.9.2 is provided also.

So both of the automatic updates (market place and update site) are using 1.9.2 and not the latest 1.9.3 with the patch...  

If you build window builder locally you get the 1.9.3.
 
For the moment the only way to install the patch is to build it locally...
Comment 18 Wim Jongman CLA 2020-01-21 05:29:04 EST
Created attachment 281562 [details]
Where to get it

Olivier, you can find the latest builds here. Since you did not merge the changes yet, they can be found in the Gerrit section.

After you merge the changes, the code will be found in the last good build section.

Cheers,

Wim
Comment 19 Olivier Prouvost CLA 2020-01-21 05:33:31 EST
Oups ! Yes ! I forgot it :). But unfortunately I am not a committer on this project and I can not merge the request... -> who could do it ? 

Ok... Not really UI friendly, I didn't see it on the web site ! :) 

Market place should also be updated... this is the easier way to update !
Comment 20 Wim Jongman CLA 2020-01-21 06:02:26 EST
Olivier, I found some issues in your patch. Would you like Gerrit comments or an update to the code?
Comment 21 Olivier Prouvost CLA 2020-01-21 10:48:59 EST
Comment on gerrit
Comment 22 Olivier Prouvost CLA 2020-01-21 10:49:35 EST
or make an amend if you already changed it
Comment 23 Wim Jongman CLA 2020-01-21 11:55:21 EST
(In reply to Olivier Prouvost from comment #21)
> Comment on gerrit

(In reply to Olivier Prouvost from comment #22)
> or make an amend i

What do you prefer?
Comment 25 Wim Jongman CLA 2020-01-23 08:54:11 EST
I have added the nightly build as a separate market place entry. 

(In reply to Olivier Prouvost from comment #19)

> 
> Ok... Not really UI friendly, I didn't see it on the web site ! :) 

You mean developer unfriendly because the lazy user does not want to read :)


To lead the horse even closer to the water, I have added the marketplace drag buttons on the downloads page[1] and I have also added a marketplace entry for the nightly build.

https://www.eclipse.org/windowbuilder/download.php
https://marketplace.eclipse.org/content/windowbuilder-nightly-build