Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Problems refreshing markers in editor.
Problems refreshing markers in editor. [message #269175] Mon, 30 August 2004 04:12 Go to next message
Eclipse UserFriend
Originally posted by: olivier.scmbb.ulb.ac.be

Hi everybody,

I have a problem with markers and annotation that I can't resolve.

I have an editor that extends TextEditor. When performing the doSave
action, I also made a sort of compile to detect errors and update markers.

So first I delete markers from the IFile using the deleteMarkers method,
then I create new markes with create method on the same IFile. The new
markers appear well in views like "Problem view", but the modification
doesn't appear in the editor and his vertical rulers.

Did someone knows how to refresh the editor's annotations with the new
markers associated to the opened IFile?

Thanks in advance.
Re: Problems refreshing markers in editor. [message #269192 is a reply to message #269175] Mon, 30 August 2004 05:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Olivier H wrote:

>Hi everybody,
>
>I have a problem with markers and annotation that I can't resolve.
>
>I have an editor that extends TextEditor. When performing the doSave
>action, I also made a sort of compile to detect errors and update markers.
>
>So first I delete markers from the IFile using the deleteMarkers method,
>then I create new markes with create method on the same IFile. The new
>markers appear well in views like "Problem view", but the modification
>doesn't appear in the editor and his vertical rulers.
>
>Did someone knows how to refresh the editor's annotations with the new
>markers associated to the opened IFile?
>
>
Use MarkerUtilities.createMarker(...)

Dani

>Thanks in advance.
>
>
>
Re: Problems refreshing markers in editor. [message #269200 is a reply to message #269192] Mon, 30 August 2004 07:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: olivier.scmbb.ulb.ac.be

Daniel Megert wrote:


> Use MarkerUtilities.createMarker(...)

> Dani

It doesn't change anything :(

The marker are still well refresh in the problems view but nothing changes
in the editor (the corresponding decorations doesn't appears).
Resolved! [message #269204 is a reply to message #269175] Mon, 30 August 2004 08:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: olivier.scmbb.ulb.ac.be

The problem is resolved.

It seems that Eclipse doesn't take in account the update of the markers
when they are in a tirdth or bigger try/catch level.
Putting it on a seconds level make then visible by the editor.
Re: Resolved! [message #269424 is a reply to message #269204] Tue, 31 August 2004 03:55 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Olivier H wrote:

>The problem is resolved.
>
>It seems that Eclipse doesn't take in account the update of the markers
>when they are in a tirdth or bigger try/catch level.
>Putting it on a seconds level make then visible by the editor.
>
>
>
Could you give more details?

Dani
Previous Topic:[RCP] HELP : problem with xml files and classpath of a plugin
Next Topic:Auto completion 'finish' key?
Goto Forum:
  


Current Time: Wed Nov 05 17:06:36 EST 2025

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

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

Back to the top