Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Get rid of CTabFolders min/max buttons artifacts(Although disabled, the minimize/maximize buttons are visible for a non default tabHeight)
Get rid of CTabFolders min/max buttons artifacts [message #1701442] Mon, 13 July 2015 13:41 Go to next message
quest ionnere is currently offline quest ionnereFriend
Messages: 57
Registered: January 2015
Member
Hi,

I managed to get rid of the minimize / maximize buttons either by CSS or by using a custom renderer. But: as soon as the CTabFolder's tabHeight is set to anything less than the optimal size or SWT.DEFAULT, the buttons are visible again although they are not working. Even with a tabHeight of 0 there are still artifacts visible from those buttons.
Is this a known bug or even already fixed? Is there a way to work around it?

[Updated on: Mon, 13 July 2015 13:42]

Report message to a moderator

Re: Get rid of CTabFolders min/max buttons artifacts [message #1701450 is a reply to message #1701442] Mon, 13 July 2015 13:59 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2526
Registered: July 2012
Senior Member
Have you tried to remove the MinMaxAddon from your addons section in the application model?
Re: Get rid of CTabFolders min/max buttons artifacts [message #1701545 is a reply to message #1701450] Tue, 14 July 2015 05:58 Go to previous messageGo to next message
quest ionnere is currently offline quest ionnereFriend
Messages: 57
Registered: January 2015
Member
The MinMaxAddon is not listed in my application model's addons, but is listed in my model spy - does the compatibility layer add it to the model?
Re: Get rid of CTabFolders min/max buttons artifacts [message #1701548 is a reply to message #1701545] Tue, 14 July 2015 06:22 Go to previous messageGo to next message
quest ionnere is currently offline quest ionnereFriend
Messages: 57
Registered: January 2015
Member
Removing the addon at runtime also does not remove the buttons.

I also checked the CTabFolder's getMinimizeVisible at runtime when the buttons are visible and it is set to false.

[Updated on: Tue, 14 July 2015 07:12]

Report message to a moderator

Re: Get rid of CTabFolders min/max buttons artifacts [message #1701748 is a reply to message #1701548] Wed, 15 July 2015 11:10 Go to previous messageGo to next message
quest ionnere is currently offline quest ionnereFriend
Messages: 57
Registered: January 2015
Member
also the setMinimizeVisible is never called with true if I remove the MinMaxAddon during startup.

This looks more and more like a bug to me...
Re: Get rid of CTabFolders min/max buttons artifacts [message #1701752 is a reply to message #1701748] Wed, 15 July 2015 11:43 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2526
Registered: July 2012
Senior Member
Maybe the information in this topic help: https://www.eclipse.org/forums/index.php/t/421833/
Re: Get rid of CTabFolders min/max buttons artifacts [message #1701833 is a reply to message #1701752] Thu, 16 July 2015 06:17 Go to previous messageGo to next message
quest ionnere is currently offline quest ionnereFriend
Messages: 57
Registered: January 2015
Member
Thank you for the link Dirk, based on this thread I got rid of the buttons in the first place.
I'm not sure if you got my problem right though: The buttons are gone as long as I do not manipulate the tabHeight of my CTabFolder, just like I want them to. But: as soon as I set the tabHeight lower than the default value I get the buttons without functionality: index.php/fa/22522/0/

Update: I finally found the reason: StackRenderer#adjustTopRight(...) manipulates the part's toolbar and for some reason it thinks it has to draw those items. After creating the widget I am able to set the ToolbarItems' exclude flags which finally removes those artifacts.

Still looks like a bug to me.

[Updated on: Thu, 16 July 2015 08:29]

Report message to a moderator

Re: Get rid of CTabFolders min/max buttons artifacts [message #1705320 is a reply to message #1701833] Thu, 13 August 2015 18:36 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 685
Registered: January 2012
Senior Member

See bug 426034.

Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Re: Get rid of CTabFolders min/max buttons artifacts [message #1705373 is a reply to message #1705320] Fri, 14 August 2015 09:43 Go to previous messageGo to next message
quest ionnere is currently offline quest ionnereFriend
Messages: 57
Registered: January 2015
Member
unfortunately I fail to see how Brian de Alwis wrote on Thu, 13 August 2015 18:36
See bug 426034.

relates to this. Yes, the bug reporter also wanted to get rid of the buttons but he did not have the problem with artefacts. With the CSS he mentioned I was able to hide the buttons but only as long as I do not touch my tabHeight.
Re: Get rid of CTabFolders min/max buttons artifacts [message #1705395 is a reply to message #1705373] Fri, 14 August 2015 14:25 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 685
Registered: January 2012
Senior Member

Sorry, I think your issue is different. Could you please %20]open a bug? Setting the tab height shouldn't affect the visibility.

Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Re: Get rid of CTabFolders min/max buttons artifacts [message #1706030 is a reply to message #1705395] Fri, 21 August 2015 08:43 Go to previous message
quest ionnere is currently offline quest ionnereFriend
Messages: 57
Registered: January 2015
Member
sure, the bug is: https://bugs.eclipse.org/bugs/show_bug.cgi?id=475568
Previous Topic:Eclipse RCP Cache memory manage internaly
Next Topic:SimpleIDE example status
Goto Forum:
  


Current Time: Thu Nov 23 16:40:39 GMT 2017

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

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