Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 18:05 Go to next message
Marton Sigmond is currently offline Marton SigmondFriend
Messages: 73
Registered: July 2009
Location: Hungary
Member
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


Best Regards,
Marton Sigmond
Senior Software Engineer
Re: How can I hide the icon on the view tab? [message #491046 is a reply to message #491000] Tue, 13 October 2009 03:04 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
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 06:33 Go to previous messageGo to next message
Michelle Davidson is currently offline Michelle DavidsonFriend
Messages: 41
Registered: August 2009
Member
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 06:33]

Report message to a moderator

Re: How can I hide the icon on the view tab? [message #491216 is a reply to message #491000] Tue, 13 October 2009 15:48 Go to previous messageGo to next message
Christian is currently offline ChristianFriend
Messages: 72
Registered: July 2009
Member
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 09:15 Go to previous message
Marton Sigmond is currently offline Marton SigmondFriend
Messages: 73
Registered: July 2009
Location: Hungary
Member
This one worked.
Thanks,
Marton


Best Regards,
Marton Sigmond
Senior Software Engineer
Previous Topic:Command at the wrong view active.
Next Topic:How to remove the EditorPart tabs contextual menu contributions ?
Goto Forum:
  


Current Time: Fri Mar 29 13:07:16 GMT 2024

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

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

Back to the top