| Replace file icons but retain its error markers [message #640825]
||Tue, 23 November 2010 05:10
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 ( http://www.eclipse.org/forums/index.php?t=msg&th=199906& amp; amp;start=0&S=4818b6d8f551d23596891dcc246bca8c) and in "Newcomers" forum ( http://www.eclipse.org/forums/index.php?t=msg&goto=64081 9&S=02f52c9b6dd9e9c6f0bba35526d48d94#msg_640819) but since there weren't any reply, I thought of trying my luck here also.
Thanks in advance,
Powered by FUDForum
. Page generated in 0.01498 seconds