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