Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Decorating tab icons (Is there a best practice for decorating tab icons in e4)
Decorating tab icons [message #977862] Fri, 09 November 2012 16:40 Go to next message
Greg Babcock is currently offline Greg BabcockFriend
Messages: 41
Registered: October 2012
Member
My application edits an EMF model and does not use the Resources API. In 3.x the EditorPart has access direct access to the image so decorating tab icons was straight forward.

There does not appear to be a way to decorate tab icons out of the box in e4 (this would be a nice enhancement Smile). I looked at how the compatibility layer decorates icons but it doesn't seem like the right approach. I am thinking about providing a list of decorator URLs in the model via the context and then modifying the renderer to decorate icons. Am I on the right track?

[Updated on: Fri, 09 November 2012 16:41]

Report message to a moderator

Re: Decorating tab icons [message #980188 is a reply to message #977862] Sun, 11 November 2012 12:37 Go to previous messageGo to next message
Eclipse UserFriend
You can set the icon to a specific image by placing aN entry in the MPart's transient data using the IPresentationEngine.OVERRIDE_ICON_IMAGE_KEY.

Brian.
Re: Decorating tab icons [message #982099 is a reply to message #977862] Mon, 12 November 2012 23:37 Go to previous messageGo to next message
Greg Babcock is currently offline Greg BabcockFriend
Messages: 41
Registered: October 2012
Member
Thank you for your advice.

I was not successful setting the tab image using:

part.getTransientData().put(IPresentationEngine.OVERRIDE_ICON_IMAGE_KEY, image);

Are any addons required to make this work?
Re: Decorating tab icons [message #987991 is a reply to message #982099] Wed, 28 November 2012 17:40 Go to previous messageGo to next message
Eclipse UserFriend
Sorry Greg -- as you discovered, this doesn't work on pure E4. I'm putting together a patch to fix this for 4.3.

Brian.
Re: Decorating tab icons [message #987994 is a reply to message #982099] Wed, 28 November 2012 17:41 Go to previous messageGo to next message
Eclipse UserFriend
Sorry Greg -- as you discovered, this doesn't work on pure E4. I'm putting together a patch to fix this for 4.3.

Brian.
Re: Decorating tab icons [message #988021 is a reply to message #982099] Wed, 28 November 2012 17:40 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
Sorry Greg -- as you discovered, this doesn't work on pure E4. I'm putting together a patch to fix this for 4.3.

Brian.
Re: Decorating tab icons [message #988022 is a reply to message #982099] Wed, 28 November 2012 17:41 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
Sorry Greg -- as you discovered, this doesn't work on pure E4. I'm putting together a patch to fix this for 4.3.

Brian.
Re: Decorating tab icons [message #988038 is a reply to message #982099] Wed, 28 November 2012 17:40 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
Sorry Greg -- as you discovered, this doesn't work on pure E4. I'm putting together a patch to fix this for 4.3.

Brian.
Re: Decorating tab icons [message #988039 is a reply to message #982099] Wed, 28 November 2012 17:41 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
Sorry Greg -- as you discovered, this doesn't work on pure E4. I'm putting together a patch to fix this for 4.3.

Brian.
Re: Decorating tab icons [message #988055 is a reply to message #982099] Wed, 28 November 2012 17:40 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
Sorry Greg -- as you discovered, this doesn't work on pure E4. I'm putting together a patch to fix this for 4.3.

Brian.
Re: Decorating tab icons [message #988056 is a reply to message #982099] Wed, 28 November 2012 17:41 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
Sorry Greg -- as you discovered, this doesn't work on pure E4. I'm putting together a patch to fix this for 4.3.

Brian.
Re: Decorating tab icons [message #988073 is a reply to message #982099] Wed, 28 November 2012 17:40 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
Sorry Greg -- as you discovered, this doesn't work on pure E4. I'm putting together a patch to fix this for 4.3.

Brian.
Re: Decorating tab icons [message #988074 is a reply to message #982099] Wed, 28 November 2012 17:41 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
Sorry Greg -- as you discovered, this doesn't work on pure E4. I'm putting together a patch to fix this for 4.3.

Brian.
Re: Decorating tab icons [message #988093 is a reply to message #982099] Wed, 28 November 2012 17:40 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
Sorry Greg -- as you discovered, this doesn't work on pure E4. I'm putting together a patch to fix this for 4.3.

Brian.
Re: Decorating tab icons [message #988094 is a reply to message #982099] Wed, 28 November 2012 17:41 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
Sorry Greg -- as you discovered, this doesn't work on pure E4. I'm putting together a patch to fix this for 4.3.

Brian.
Re: Decorating tab icons [message #988112 is a reply to message #982099] Wed, 28 November 2012 17:40 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
Sorry Greg -- as you discovered, this doesn't work on pure E4. I'm putting together a patch to fix this for 4.3.

Brian.
Re: Decorating tab icons [message #988113 is a reply to message #982099] Wed, 28 November 2012 17:41 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
Sorry Greg -- as you discovered, this doesn't work on pure E4. I'm putting together a patch to fix this for 4.3.

Brian.
Re: Decorating tab icons [message #988135 is a reply to message #982099] Wed, 28 November 2012 17:40 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
Sorry Greg -- as you discovered, this doesn't work on pure E4. I'm putting together a patch to fix this for 4.3.

Brian.
Re: Decorating tab icons [message #988136 is a reply to message #982099] Wed, 28 November 2012 17:41 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
Sorry Greg -- as you discovered, this doesn't work on pure E4. I'm putting together a patch to fix this for 4.3.

Brian.
Re: Decorating tab icons [message #988158 is a reply to message #982099] Wed, 28 November 2012 17:40 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
Sorry Greg -- as you discovered, this doesn't work on pure E4. I'm putting together a patch to fix this for 4.3.

Brian.
Re: Decorating tab icons [message #988159 is a reply to message #982099] Wed, 28 November 2012 17:41 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
Sorry Greg -- as you discovered, this doesn't work on pure E4. I'm putting together a patch to fix this for 4.3.

Brian.
Re: Decorating tab icons [message #988177 is a reply to message #982099] Wed, 28 November 2012 17:40 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
Sorry Greg -- as you discovered, this doesn't work on pure E4. I'm putting together a patch to fix this for 4.3.

Brian.
Re: Decorating tab icons [message #988178 is a reply to message #982099] Wed, 28 November 2012 17:41 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
Sorry Greg -- as you discovered, this doesn't work on pure E4. I'm putting together a patch to fix this for 4.3.

Brian.
Re: Decorating tab icons [message #988339 is a reply to message #987994] Thu, 29 November 2012 13:21 Go to previous messageGo to next message
Eclipse UserFriend
I hope those repeat posts makes it clear that I am *very* sorry.
Re: Decorating tab icons [message #988393 is a reply to message #988339] Thu, 29 November 2012 17:31 Go to previous messageGo to next message
Eclipse UserFriend
Also we are waiting for your 15 patches.
Re: Decorating tab icons [message #988421 is a reply to message #988393] Thu, 29 November 2012 20:41 Go to previous messageGo to next message
Greg Babcock is currently offline Greg BabcockFriend
Messages: 41
Registered: October 2012
Member
Thank you, 4.3 is soon enough for me.

I am just building an app to learn e4 and develop methods for implementing features I currently use in 3.x.
Re: Decorating tab icons [message #996897 is a reply to message #977862] Thu, 03 January 2013 06:22 Go to previous message
Charles Jarowski is currently offline Charles JarowskiFriend
Messages: 2
Registered: January 2013
Location: 400 E 77th St # 1A, New Y...
Junior Member
It will be better if you could able to show some demo of it, I mean just wanted to see how it looks.
Previous Topic:Port to E4 roadmap?
Next Topic:How to set/modify the style of the application window
Goto Forum:
  


Current Time: Fri Mar 29 14:41:59 GMT 2024

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

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

Back to the top