DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page Developing a custom annotation for a marker
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Feb 2009
Default Developing a custom annotation for a marker - 02-02-2009, 04:18 AM

Hi,

I'm currently integrating a clone detection tool (ConQAT - Conqat) into Eclipse. The idea is to support the software development process with clone detection. For this purpose I've created a clonemarker, to track clones in the java editor.
Picture 1.jpg

To show a code region, I've created my own Annotation and added it to the annotation model of the Java Editor. I create the annotation at the same position I created the marker. This is a fine workaround, but I want the annotation to actually represent the clonemarker. I've looked at the classes SimpleMarkerAnnotation and MarkerAnnotation, but neither seem to do what I want. I've also tried to use the markerAnnotationSpecifiction extension, which does do what I want. However, the problem I have here, is the fact, that the marker is supposed to by represented by a bar, specifying a text range(see screenshot). I can't see how to manage that with the extension(as far as I can tell only images can be specified and I need to draw). Any hints in the right direction, are welcome. I'm developing in Eclipse 3.4 on a Mac OS 10.5 system.

Regards,

Jason
Reply With Quote
Reply

Tags
annotation, clone, eclipse ui, marker

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[EMF-RCP] Create Marker on a EObject Neatsoul Eclipse 2 02-03-2009 02:59 AM
Show marker on specific view kaprasanna Eclipse 0 07-24-2008 08:20 AM
Marker doesn't show up. kaprasanna Eclipse 0 07-22-2008 07:31 AM
Developing application with JOGL and Eclipse cekic Eclipse 0 06-04-2008 11:33 AM
How to change the Target Platform when developing a RCP App? joco Eclipse 0 03-12-2008 07:33 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com