Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Editor doesn't automatically show markers created by my plugin
Editor doesn't automatically show markers created by my plugin [message #219016] Wed, 31 March 2004 04:13 Go to next message
Eclipse UserFriend
Hi,

I'm trying to write a plugin with Eclipse 3.0M7 which creates IMarker
objects on a java source file. The plugin should not run during a
build but provides a popup menu on org.eclipse.jdt.core.IJavaElement
so I can select a java source in package explorer and run the plugin
via the popup menu on this single file.

The marker creation works fine, but an editor on the just marked java
source doesn't show the markers unless I close and reopen the
editor. Also the the icon in package explorer does not change to
reflect that the file has markers etc.

I assume that I have to notifiy someone about the makers creation so
the editor, package explorer etc. can update but I have no clue how to
accomplish this.

Any help is very appreciated!

Ciao,
Steffen
Re: Editor doesn't automatically show markers created by my plugin [message #219067 is a reply to message #219016] Wed, 31 March 2004 06:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Steffen Siebert wrote:

>Hi,
>
>I'm trying to write a plugin with Eclipse 3.0M7 which creates IMarker
>objects on a java source file. The plugin should not run during a
>build but provides a popup menu on org.eclipse.jdt.core.IJavaElement
>so I can select a java source in package explorer and run the plugin
>via the popup menu on this single file.
>
>The marker creation works fine, but an editor on the just marked java
>source doesn't show the markers unless I close and reopen the
>editor. Also the the icon in package explorer does not change to
>reflect that the file has markers etc.
>
>I assume that I have to notifiy someone about the makers creation so
>the editor, package explorer etc. can update but I have no clue how to
>accomplish this.
>
>Any help is very appreciated!
>
>
Use MarkerUtilities.createMarker

Dani

>Ciao,
> Steffen
>
>
>
>
Re: Editor doesn't automatically show markers created by my plugin [message #219381 is a reply to message #219067] Wed, 31 March 2004 11:58 Go to previous message
Eclipse UserFriend
Daniel Megert wrote:

> Use MarkerUtilities.createMarker

Works fine. Many thanks!

Ciao,
Steffen
Previous Topic:Importing a remote directory into the workspace as a project
Next Topic:Tree with checkboxes
Goto Forum:
  


Current Time: Tue Jul 22 12:07:24 EDT 2025

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

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

Back to the top