Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » GridLayout Problems after Juno SP2 Update
GridLayout Problems after Juno SP2 Update [message #1041906] Mon, 15 April 2013 18:46 Go to next message
Thomas Kernstock is currently offline Thomas KernstockFriend
Messages: 29
Registered: July 2009
Location: Vienna
Junior Member
Hi @all,

I'm using SWT Designer Version: 1.5.2 Build id: 2013.03.07 (Build from January has the same problem!) and different Juno installations.
To make short what took me some hours Confused ->
I use a workspace with Juno Java EE IDE 1.5.1.20121004-1506 and the above version of WindowsBuilder. I open my workspace and a JFace Application window with the designer - it shows up like in BeforeJunoSP2.jpg.

I copied the complete juno installation and updated to 1.5.2.20130211-1820. No other plugin is updated! When I open the same Workspace and java class like before, it shows up like in AftfterJunoSP2.jpg.

Of course I also tried starting the updated juno with -clean, but that didn't help.

When I run my program the layout is correct !

Any ideas ? Is this a bug or do I need to update/delete .. something else ?

Thanx
Thomas

[Updated on: Mon, 15 April 2013 18:49]

Report message to a moderator

Re: GridLayout Problems after Juno SP2 Update [message #1042057 is a reply to message #1041906] Mon, 15 April 2013 23:58 Go to previous messageGo to next message
Eric Clayberg is currently offline Eric ClaybergFriend
Messages: 979
Registered: July 2009
Location: Boston, MA
Senior Member
WIthout a test case, I can't even guess what the problem might be.
Re: GridLayout Problems after Juno SP2 Update [message #1042273 is a reply to message #1042057] Tue, 16 April 2013 07:47 Go to previous messageGo to next message
Thomas Kernstock is currently offline Thomas KernstockFriend
Messages: 29
Registered: July 2009
Location: Vienna
Junior Member
Hi Eric,

long time no hear Smile

Here is the testcase. Simply load the project with Juno 4.2 SP1 and then with Juno 4.2 SP2 and the latest WB version from the market. You will see the affect thats also shown in my sreenshots. It seems that the parsing starts with the last element in the grid an places it in the first cell.

Pls. let me know if you need further info.

br
Thomas
  • Attachment: TestCase.zip
    (Size: 12.10KB, Downloaded 211 times)
Re: GridLayout Problems after Juno SP2 Update [message #1042527 is a reply to message #1041906] Tue, 16 April 2013 14:36 Go to previous messageGo to next message
Rico Scholz is currently offline Rico ScholzFriend
Messages: 9
Registered: March 2013
Junior Member
I can confirm this error.
In my UI-files this strange behaviour also occurs. There is no difference between Gridlayout with 1 column and >1 rows, >1 columns and 1 row, or a layout with many columns and rows.
At runtime everything is okay.
I'm also on the latest WindowBuilder and Eclipse 4.2.2
Re: GridLayout Problems after Juno SP2 Update [message #1042592 is a reply to message #1041906] Tue, 16 April 2013 16:11 Go to previous messageGo to next message
Frederic Filiatrault is currently offline Frederic FiliatraultFriend
Messages: 8
Registered: April 2013
Junior Member
Same here. We are struggling with this. The updated version 1.5.2 is not working on Juno SR2.
Re: GridLayout Problems after Juno SP2 Update [message #1043633 is a reply to message #1042273] Thu, 18 April 2013 00:11 Go to previous messageGo to next message
Eric Clayberg is currently offline Eric ClaybergFriend
Messages: 979
Registered: July 2009
Location: Boston, MA
Senior Member
What OS are you using?

We tried Eclipse 4.2.2 and the latest WB under OSX and it looked fine.

If you are seeing a regression solely based on the Eclipse version used, then there must be a regression in that version of Eclipse. We just don't know what it might be. It may even be OS-specific if you are using something other than OSX like we are.
Re: GridLayout Problems after Juno SP2 Update [message #1043810 is a reply to message #1043633] Thu, 18 April 2013 06:41 Go to previous messageGo to next message
Thomas Kernstock is currently offline Thomas KernstockFriend
Messages: 29
Registered: July 2009
Location: Vienna
Junior Member
I'm using Windows 7 64-bit.

If it was just an eclipse glitch I wonder why the layout is fine when I start my application (directly in eclipse). Too bad you can't reproduce the problem but as you can see in here I'm not the only one.
What I also found in the forum was that the problems seems to go away using eclipse 4.2.2 with the old version of WB (5.1.0). I cannot confirm this - I tried 5.1.0 too but the problem persists.

[Updated on: Thu, 18 April 2013 07:00]

Report message to a moderator

Re: GridLayout Problems after Juno SP2 Update [message #1044025 is a reply to message #1043810] Thu, 18 April 2013 12:04 Go to previous messageGo to next message
Rico Scholz is currently offline Rico ScholzFriend
Messages: 9
Registered: March 2013
Junior Member
I'm also using Win 7 64bit.
Re: GridLayout Problems after Juno SP2 Update [message #1044092 is a reply to message #1044025] Thu, 18 April 2013 13:31 Go to previous messageGo to next message
Frederic Filiatrault is currently offline Frederic FiliatraultFriend
Messages: 8
Registered: April 2013
Junior Member
Thx to Eric Clayberg (See http://www.eclipse.org/forums/index.php/t/468284/), the installation worked. I had to manually download the JAR and install it (locally as an archive throught the "install new software..." option)

Use this link: http://www.eclipse.org/windowbuilder/download.php

Do NOT use this one:developers.google.com/java-dev-tools/download-wbpro

Re: GridLayout Problems after Juno SP2 Update [message #1044256 is a reply to message #1044092] Thu, 18 April 2013 17:21 Go to previous messageGo to next message
Thomas Kernstock is currently offline Thomas KernstockFriend
Messages: 29
Registered: July 2009
Location: Vienna
Junior Member
Hi Frederic,

thanks for this link. I uninstalled WB and installed it from the updatesite behind your link.
Unfortunately the layout doesn't work with this version either. Furthermore - this is exactly the version that I use under eclipse 4.2 SR1 - there it works perfectly.

[Updated on: Thu, 18 April 2013 17:24]

Report message to a moderator

Re: GridLayout Problems after Juno SP2 Update [message #1047398 is a reply to message #1044256] Tue, 23 April 2013 06:44 Go to previous messageGo to next message
Thomas Kernstock is currently offline Thomas KernstockFriend
Messages: 29
Registered: July 2009
Location: Vienna
Junior Member
@Eric Clayberg

are there any suggestions what I could try/do now?
Everything I tried failed and showed the widgets in the provided Testcase in the wrong order. I uninstalled and installed different versions from different download links. Neither of 5.0, 5.1 and 5.2 are working with Eclipse SR2 on windows 7 which is rather annoying.
Could you manage to reproduce the problem on a Windows 7 system ?

thanks and br
Thomas
Re: GridLayout Problems after Juno SP2 Update [message #1047569 is a reply to message #1047398] Tue, 23 April 2013 11:49 Go to previous messageGo to next message
Eric Clayberg is currently offline Eric ClaybergFriend
Messages: 979
Registered: July 2009
Location: Boston, MA
Senior Member
We can reproduce it under Windows but not OSX. It appears to be an issue with CTabFolders rather than GridLayout and caused by some recent change to SWT (in Juno SP2). Other layouts like FillLayout are similarly affected when contained within a CTabFolder. Nothing in this area of WB has changed in quite awhile, so we have not been able to identify the underlying issue.

Do you see this happen anywhere outside the context of a CTabFolder? if so, please send us an additional test case. If not, we will focus on recent changes made to CTabFolder that might cause this.
Re: GridLayout Problems after Juno SP2 Update [message #1047693 is a reply to message #1047569] Tue, 23 April 2013 14:27 Go to previous message
Thomas Kernstock is currently offline Thomas KernstockFriend
Messages: 29
Registered: July 2009
Location: Vienna
Junior Member
I checked a couple of classes in my project. All problems are connected to CTabFolders but not all CTabFolders have this problem ! Some are completely OK some only affect one subwidget. For example there is a CTabItem/composite with Formlayout containing 7 Groups with GridLayout. Only one of these groups gets destroyed (=parsed in the wrong direction). Every time the code gets parsed again (returning from another CTabItem) the layout gets worse.

As I wrote before it seems to be "just" a designtime problem. When I start the program within eclipse using the new SWT and JFace classes and runtime all layouts are fine.

Previous Topic:WB in Ubuntu 12.04 Installation... incomplete?
Next Topic:Is there a reliable way to surround an existing JTable with a JScrollPane in Eclipse?
Goto Forum:
  


Current Time: Thu Mar 28 12:44:57 GMT 2024

Powered by FUDForum. Page generated in 0.05582 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top