Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Dynamically changing icons in Editor Tabs?
Dynamically changing icons in Editor Tabs? [message #460185] Fri, 15 December 2006 16:30 Go to next message
Eclipse UserFriend
Howdy,

Is there an easy way to dynamically change the icon in an Editor's tab??

In the Eclipse IDE, the filename changes to "* filename" when the text
editor is 'dirty'. I need a similar behavior, but with respect to the icon
in an Editor Tab.

I would like to be able to change the document icon in an Editor tab to a
red X or something similar when there is an error of some kind inside an
Editor. Is there an easy way to do this?

I was hoping there was a way to use a Decorator or something similar, but it
is not obvious how one could do this.

Any suggestions welcomed.


thanks,

-dave
Re: Dynamically changing icons in Editor Tabs? [message #460190 is a reply to message #460185] Sat, 16 December 2006 01:33 Go to previous message
Eclipse UserFriend
Dave wrote:

>
> Howdy,
>
> Is there an easy way to dynamically change the icon in an Editor's tab??
>

If I understand correctly, it's as easy as WorkbenchPart.setTitleImage().

--
With best regards, Michael Spector
Previous Topic:Buttons on views missing
Next Topic:Drag & Drop
Goto Forum:
  


Current Time: Sun Mar 16 00:07:09 EDT 2025

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

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

Back to the top