Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » custom decorator (lightweight or not) overwrites marker in project tree
custom decorator (lightweight or not) overwrites marker in project tree [message #716280] Tue, 16 August 2011 21:18
Eclipse UserFriend
Originally posted by: M Luchian


<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<body text="#000000" bgcolor="#FFFFFF">
Hello, <br>
I have a custom decorator I am using for some folders inside my
custom made IDE that I use to replace the original icon. The problem
is, whenever I try to add a resource marker on those decorated
folders, the decorator overwrites the marker, making the small X not
appear next to the custom decorated resource.<br>
I use the org.eclipse.ui.decorators extension point to declare my
decorator and the code below to add my marker: <br>
<small><font face="Courier New, Courier, monospace">IMarker iMarker
= ((IFolder) folder).createMarker(Activator.MARKER_TYPE);<br>
iMarker.setAttribute(IMarker.MESSAGE, "This folder has an error:
" + ((IFolder) folder).getFullPath().toString());<br>
iMarker.setAttribute(IMarker.SEVERITY, IMarker.SEVERITY_ERROR);<br>
I even tried to add a lightweight decorator to do the job, but it
still overwrites the marker (or part of it) depending in the icon
returned by the marker. <br>
Is there a way to prevent my custom decorator from overwriting the
marker? <br>
Thank you, <br>
Previous Topic:Workbench seems to be full of multi-user issues.
Next Topic:DELEGATE DoubleClick to my class
Goto Forum:

Current Time: Thu Jan 20 05:36:04 GMT 2022

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

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

Back to the top