setting text markers on a resource [message #290202] |
Fri, 19 August 2005 18:10 |
Eclipse User |
|
|
|
Originally posted by: no.yes.maybe
Hi,
I'm posting thsi both on platform and tools.cdt because as far as I
understand it involves both.
I want to highlight a line of C code for a file being shown in a CDT
editor. Given the IFile retrieved from the workspace, I do the following:
IMarker m = file.createMaker(IMarker.TEXT);
m.setAttribute(IMarker.LINE_NUMBER, linenum);
As far as I understand if an editor is opened on file I should see line
linenum highlighted in it. CDT's CEditor seems to be a subclass of
TextEditor, so it should behave accordingly. Instead, I don't see
anything being highlighted in the editor.
Am I missing something?
Thanks,
Roberto
|
|
|
Re: setting text markers on a resource [message #290209 is a reply to message #290202] |
Fri, 19 August 2005 21:05 |
Eclipse User |
|
|
|
Originally posted by: automatic.javalobby.org
Markers don't highlight. They show up in the tasks window instead. They are used to say 'There is an error on this line'.
Some other editors may choose to show the markers differently, but that's an implementation feature of those editors and not the marker specifically.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03764 seconds