Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Replace file icons but retain its error markers (Error markers in a custom editor.)
icon5.gif  Replace file icons but retain its error markers [message #640825] Tue, 23 November 2010 10:10
daisydale85 is currently offline daisydale85Friend
Messages: 38
Registered: August 2010

I am developing an editor that supports more than 1 file extension (like Web Browser which supports htm, html etc..) and I am using DLTK for this.
In my case, I need to show different icons in Project/Package/Script explorer for the files based on their extension. I tried using "org.eclipse.ui.decorators" for doing this. I tried by giving "REPLACE" as the light weight decorator's location. It is replacing the icon but the problem marker (red cross mark over the icon) displayed in case the file has any error disappears .
What I need to do is to change the icon of the file displayed in the explorer but retain other decorators. I know that using different extensions of "org.eclipse.ui.editors" for different file extensions will solve the problem, but I wish to use the same editor and single extension of "org.eclipse.ui.editors" since there isn't any difference other than the icons. Also, please let me know if there is any other way to solve the issue.

I am not sure whether this is the right forum to post this doubt. I have already posted in DLTK forums ( amp; amp;start=0&S=4818b6d8f551d23596891dcc246bca8c) and in "Newcomers" forum ( 9&S=02f52c9b6dd9e9c6f0bba35526d48d94#msg_640819) but since there weren't any reply, I thought of trying my luck here also.

Thanks in advance,
Previous Topic:Preferences Not Passed Through to AntRunner in 3.6.1
Next Topic:How to write % char within xml that is included for org.eclipse.ui.editors.templates
Goto Forum:

Current Time: Fri Jun 22 05:16:47 GMT 2018

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

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

Back to the top