Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How can I hide the icon on the view tab?(I do not want the title image appear on the tab of the view. setTitleImage(null) method did not help. What should I do?)
How can I hide the icon on the view tab? [message #491000] Mon, 12 October 2009 14:05 Go to next message
Eclipse UserFriend
Hi,

I do not want the title image of my view to appear on the view tab, but I could not find a way to hide it yet.

I tried to invoke the setTitleImage(null) in the init() and in the createPartControl() methods, but no luck.

Please let me know if you have any suggestion.

Thanks,
Marton
Re: How can I hide the icon on the view tab? [message #491046 is a reply to message #491000] Mon, 12 October 2009 23:04 Go to previous messageGo to next message
Eclipse UserFriend
Marton Sigmond wrote:
> I do not want the title image of my view to appear on the view tab, but
> I could not find a way to hide it yet.

What if you don't specify the image in the plugin.xml?

- Prakash

Platform UI Team, IBM
http://blog.eclipse-tips.com
Re: How can I hide the icon on the view tab? [message #491068 is a reply to message #491046] Tue, 13 October 2009 02:33 Go to previous messageGo to next message
Eclipse UserFriend
Prakash G.R. wrote on Mon, 12 October 2009 23:04
Marton Sigmond wrote:
> I do not want the title image of my view to appear on the view tab, but
> I could not find a way to hide it yet.

What if you don't specify the image in the plugin.xml?

- Prakash

Platform UI Team, IBM
http://blog.eclipse-tips.com


That doesn't function, because in this case, the eclipse standard icon will be shown.

I dont know if there is a chance, but as a workaround you can create a 16 x 16 icon with an transparent background, and use this as the view icon. So you dont see an icon, there is only a small free place previous the viewtitle

[Updated on: Tue, 13 October 2009 02:33] by Moderator

Re: How can I hide the icon on the view tab? [message #491216 is a reply to message #491000] Tue, 13 October 2009 11:48 Go to previous messageGo to next message
Eclipse UserFriend
Marton Sigmond schrieb:
> Hi,
>
> I do not want the title image of my view to appear on the view tab, but
> I could not find a way to hide it yet.
>
> I tried to invoke the setTitleImage(null) in the init() and in the
> createPartControl() methods, but no luck.
>
> Please let me know if you have any suggestion.
>
> Thanks,
> Marton

Sooner or later its nice to hack a bit around in the Presentation...
like for changeing rightclick menu on the tab...
so if you provide your own Presentation based on the default one you can
change the code not to supply and image.

Christian
Re: How can I hide the icon on the view tab? [message #491350 is a reply to message #491068] Wed, 14 October 2009 05:15 Go to previous message
Eclipse UserFriend
This one worked.
Thanks,
Marton
Previous Topic:Command at the wrong view active.
Next Topic:How to remove the EditorPart tabs contextual menu contributions ?
Goto Forum:
  


Current Time: Wed Jul 23 07:49:23 EDT 2025

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

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

Back to the top