Tabitem dispose in Linux - possible bug [message #1715170] |
Thu, 19 November 2015 18:58 |
Massimo Rabbi Messages: 29 Registered: November 2010 Location: Padova |
Junior Member |
|
|
Hi all,
I wanted a confirmation about a possible bug related to TabItem.
I always understood that in order to show/hide a tabitem inside a tabfolder, you dispose it and just in case you re-create it when needed (i.e: there is a button regulating the behavior): the associated control is not affected.
See also ref here: http://www.eclipsezone.com/eclipse/forums/t28246.html
It appears that there has been a change in SWT (maybe?) in the last Eclipse versions: not sure starting from which version. The problem appears in Linux platform. It seems that when you dispose the TabItem, also the associated control is disposed.
I verified this issue in our RCP product that is now based on Eclipse 4.5.1 platform while testing on Ubuntu 14.04. We never had such issue with the previous product versions based on Eclipse 3.8.2.
Moreover the expected behavior is still the same in Windows and Mac OS X platforms.
Am i getting this wrong, or as I think it's a real bug that should reported to Bugzilla? I think it's quite severe too.
Regards,
Massimo.
[Updated on: Thu, 19 November 2015 18:59] Report message to a moderator
|
|
|
|
Re: Tabitem dispose in Linux - possible bug [message #1715329 is a reply to message #1715170] |
Sun, 22 November 2015 10:53 |
Marco Maccaferri Messages: 147 Registered: July 2009 |
Senior Member |
|
|
Il 19/11/2015 19:58, Massimo Rabbi ha scritto:
> It appears that there has been a change in SWT (maybe?) in the last
> Eclipse versions: not sure starting from which version. The problem
> appears in Linux platform. It seems that when you dispose the
> TabItem, also the associated control is disposed. I verified this
> issue in our RCP product that is now based on Eclipse 4.5.1 platform
> while testing on Ubuntu 14.04. We never had such issue with the
> previous product versions based on Eclipse 3.8.2. Moreover the
> expected behavior is still the same in Windows and Mac OS X
> platforms.
Look at the source code, there is an explanation for the new behaviour,
and it is related to GTK3 only. You can try to run your product with
GTK2 by setting the environment variable SWT_GTK3=0, this should fix
your problem. CTabFolder/CTabItem doesn't seems to have this issue,
maybe you can use that instead of the native control if you can't run
with GTK2.
> Am i getting this wrong, or as I think it's a real bug that should
> reported to Bugzilla. I think it's quite severe too.
I agree, this is an inconsistency that should be fixed.
Bye,
Marco.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02457 seconds