Create IMarkers that gets added to the 'Tasks' view [message #318384] |
Fri, 27 July 2007 07:19  |
Eclipse User |
|
|
|
Hi,
I'd like to add IMarkers to an IFile that shows up in the 'Tasks' view.
I intend to add these IMarkers when my editor is opened and then delete
them when the editor is closed, so I can't actually just add new
IMarkers of the IMarker.TASK type because then I'll end up deleting
tasks that a user has added in manually.
So how can I contribute IMarkers to an IFile that shows up with the same
blue annotation, task icon, and appears in the 'Tasks' view without
using IMarker.Task as its type?
Thanks.
Regards,
Rem
|
|
|
|
Re: Create IMarkers that gets added to the 'Tasks' view [message #318392 is a reply to message #318385] |
Fri, 27 July 2007 10:04  |
Eclipse User |
|
|
|
Jacek Pospychala wrote:
> maybe you can create your own type of marker
> (org.eclipse.core.resources.markers), which super type is
> org.eclipse.core.resources.taskmarker
> Then you'd be able to find only your type of markers and delete them, or
> even set them not persistent.
Thanks Jacek, setting the supertype worked.
For interested parties, here is a snippet of my plugin.xml.
<extension
id="a.b.c.someMarker"
name="Some Marker"
point="org.eclipse.core.resources.markers">
<super
type="org.eclipse.core.resources.taskmarker">
</super>
<persistent
value="false">
</persistent>
</extension>
Regards,
Rem
|
|
|
Powered by
FUDForum. Page generated in 0.04324 seconds