[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Highlight marker in editor

Nuno Ferreira wrote:

Hi,

I've implemented a markers view and i have the behavior of opening the an editor when i double click a problem in my list of markers. What i'm not getting is this behavior to highlight the line where the marker is. How can i overcome this?


Thanks in advance.

This is implemented by the editor , either via a IGotoMarker adapter or directly. Assuming the marker contains start and end character information, the editor uses this to select the lines in between. See AbstractDecoratedTextEditor.gotoMarker(IMarker) for more details.


Hitesh