Eclipse Community Forums
Forum Search:

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

<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello, <br>
<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>
<br>
I use the org.eclipse.ui.decorators extension point to declare my
decorator and the code below to add my marker: <br>
<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>
</font></small><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>
<br>
Is there a way to prevent my custom decorator from overwriting the
marker? <br>
<br>
Thank you, <br>
<br>
Mircea<br>
</body>
</html>
Previous Topic:License File
Next Topic:Referenced part does not exist yet: org.eclipse.ui.view.tasklist.TaskList.
Goto Forum:
  


Current Time: Thu Oct 23 08:44:44 GMT 2014

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

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