Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Displaying markers in JDT Editor
Displaying markers in JDT Editor [message #116769] Tue, 26 August 2003 18:30 Go to next message
Eclipse UserFriend
Originally posted by: rowland.eecs.berkeley.edu

I'm creating markers on a resource that appears in a JDT editor. How do I
get the markers to appear in the editor marker bar?
Re: Displaying markers in JDT Editor [message #116826 is a reply to message #116769] Tue, 26 August 2003 19:07 Go to previous messageGo to next message
Chris Laffra is currently offline Chris LaffraFriend
Messages: 253
Registered: July 2009
Senior Member
http://www.eclipse.org/articles/Article-Decorators/decorator s.html ?

"Rowland R Johnson" <rowland@eecs.berkeley.edu> wrote in message
news:big90k$mr8$1@eclipse.org...
> I'm creating markers on a resource that appears in a JDT editor. How do I
> get the markers to appear in the editor marker bar?
>
Re: Displaying markers in JDT Editor [message #116851 is a reply to message #116826] Tue, 26 August 2003 19:35 Go to previous messageGo to next message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
I do not believe that decorators are relevant here.

Which editor bar are you talking about: the overview ruler (right hand side)
or the main ruler (left hand side)?
The Java Editor uses annotations and an annotation model.
Take a look at the AnnotationModel and its subclasses (specifically
ClassFileMarkerAnnotationModel and CompilationUnitAnnotationModel), and the
JavaMarkerAnnotation class

HTH
Darins

"Chris Laffra" <Chris_Laffra@oti.com> wrote in message
news:bigb4s$p1v$1@eclipse.org...
> http://www.eclipse.org/articles/Article-Decorators/decorator s.html ?
>
> "Rowland R Johnson" <rowland@eecs.berkeley.edu> wrote in message
> news:big90k$mr8$1@eclipse.org...
> > I'm creating markers on a resource that appears in a JDT editor. How do
I
> > get the markers to appear in the editor marker bar?
> >
>
>
Re: Displaying markers in JDT Editor [message #118630 is a reply to message #116769] Thu, 28 August 2003 12:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Rowland R Johnson wrote:

>I'm creating markers on a resource that appears in a JDT editor. How do I
>get the markers to appear in the editor marker bar?
>
>
You need define a marker annotation specification using the following
extension point:
org.eclipse.ui.workbench.texteditor/markerAnnotationSpecific ation

For an example see org.eclipse.search/plugin.xml

After doing so, the annotation will show up under the following preferences:
Workbench > Editors > Text Editor - Annotations page
Java > Editor - Annotations page

HTH
Dani
Re: Displaying markers in JDT Editor [message #118767 is a reply to message #118630] Thu, 28 August 2003 14:48 Go to previous messageGo to next message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
And don't forget
Ant>Editor>Annotations Page :-)

Darins

"Daniel Megert" <daniel.megert@gmx.net> wrote in message
news:biktco$305$1@eclipse.org...
> Rowland R Johnson wrote:
>
> >I'm creating markers on a resource that appears in a JDT editor. How do I
> >get the markers to appear in the editor marker bar?
> >
> >
> You need define a marker annotation specification using the following
> extension point:
> org.eclipse.ui.workbench.texteditor/markerAnnotationSpecific ation
>
> For an example see org.eclipse.search/plugin.xml
>
> After doing so, the annotation will show up under the following
preferences:
> Workbench > Editors > Text Editor - Annotations page
> Java > Editor - Annotations page
>
> HTH
> Dani
>
Re: Displaying markers in JDT Editor [message #118807 is a reply to message #118767] Thu, 28 August 2003 15:31 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Of course! How could I forget - my apologies ;-)

Dani

Darin Swanson wrote:

>And don't forget
>Ant>Editor>Annotations Page :-)
>
>Darins
>
>"Daniel Megert" <daniel.megert@gmx.net> wrote in message
>news:biktco$305$1@eclipse.org...
>
>
>>Rowland R Johnson wrote:
>>
>>
>>
>>>I'm creating markers on a resource that appears in a JDT editor. How do I
>>>get the markers to appear in the editor marker bar?
>>>
>>>
>>>
>>>
>>You need define a marker annotation specification using the following
>>extension point:
>> org.eclipse.ui.workbench.texteditor/markerAnnotationSpecific ation
>>
>>For an example see org.eclipse.search/plugin.xml
>>
>>After doing so, the annotation will show up under the following
>>
>>
>preferences:
>
>
>>Workbench > Editors > Text Editor - Annotations page
>>Java > Editor - Annotations page
>>
>>HTH
>>Dani
>>
>>
>>
>
>
>
>
Previous Topic:solaris 9
Next Topic:Testing i18n help plugins
Goto Forum:
  


Current Time: Wed Jul 17 18:30:32 GMT 2024

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

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

Back to the top