Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Disappearing marker problem
Disappearing marker problem [message #330259] Wed, 23 July 2008 14:08 Go to next message
Nadav is currently offline NadavFriend
Messages: 29
Registered: July 2009
Junior Member
I'm developing a plugin for eclipse which allows one to add a comment to a
particular line of code. This is done as an extension to the standard
Editor for Java code, and when a comment is added, my own custom marker
appears in the ruler on the left side of the editor(just like breakpoints).

The bug occurs when adding a comment to the first line of a function. If
the cursor is outside of the function, it works fine-- my marker appears
in the ruler on top of the shading for current scope. However, when the
cursor is within the function, my marker disappears, apparently
overwritten by the start of the shading.

How can I fix this? Is there some layering or priority value for markers
to set what marker appears on top of what?
Re: Disappearing marker problem [message #330399 is a reply to message #330259] Mon, 28 July 2008 10:54 Go to previous message
Nadav is currently offline NadavFriend
Messages: 29
Registered: July 2009
Junior Member
Oh, I think it was this:


"In the manifest editor, click on 'extensions'. Go to
org.eclipse.ui.editor.markerAnnotationSpecification. There is an
attribute called 'presentationLayer' which is set to 0. Set it to 1 and
the problem goes away.

When it is set to 0-- sometimes the annotation shows sometimes not,
depending on what was added first-- the function or the annotation. (OK,
in all normal cases the function is added first, then the comment, so the
hilighting in the ruler overwrites the comment. I don't know why its only
the first line of hilighting. Apparently the rest of the hilighting is
done differently--maybe its always being updated so its re-added after our
annotation?"
Previous Topic:Programmatically generating a launch configuration
Next Topic:Local extension location with Eclipse 3.4?
Goto Forum:
  


Current Time: Wed Jan 15 10:35:09 GMT 2025

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

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

Back to the top