Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Create IMarkers that gets added to the 'Tasks' view
Create IMarkers that gets added to the 'Tasks' view [message #318384] Fri, 27 July 2007 07:19 Go to next message
Eclipse UserFriend
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 #318385 is a reply to message #318384] Fri, 27 July 2007 07:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jacek.pospychala.pl.ibm.com

Rem,
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.

Remy Chi Jian Suen wrote:
> 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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Newbie questions
Next Topic:Why I only can modify the first column in tableviewer of Eclipse3.3
Goto Forum:
  


Current Time: Fri May 09 23:27:38 EDT 2025

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

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

Back to the top