Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Marker Annotation for complete line
Marker Annotation for complete line [message #245919] Wed, 18 July 2007 08:36 Go to next message
Eclipse UserFriend
Originally posted by: martin.nowack.gmail.com

Hi,
I currently try to develop a plug-in for JDT.

I mark some parts of code as text markers. The markerAnnotationSpecification
used for this text paints the background with a special colour.
This works good but just the text gets or space left from the text gets
coloured.

But I want an other behaviour. If the code covers several lines, I also want
the right side coloured like if you make a text selection over several
lines.

I don't know, if this is possible for markers.
Currently I didn't find the way to do it.

Please give me a hint for the right approach.

Thanks for help.
Re: Marker Annotation for complete line [message #246039 is a reply to message #245919] Mon, 23 July 2007 13:16 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
MartinN wrote:

>Hi,
>I currently try to develop a plug-in for JDT.
>
>I mark some parts of code as text markers. The markerAnnotationSpecification
>used for this text paints the background with a special colour.
>This works good but just the text gets or space left from the text gets
>coloured.
>
>But I want an other behaviour. If the code covers several lines, I also want
>the right side coloured like if you make a text selection over several
>lines.
>
>I don't know, if this is possible for markers.
>
>
This is not possible using markers.

Dani

>Currently I didn't find the way to do it.
>
>
There is none unless you use internal code to highlight the the lines in
the open Java editor(s).

Dani

>Please give me a hint for the right approach.
>
>Thanks for help.
>
>
>
>
>
>
>
Previous Topic:Java content assist: Typing in '(' after the method name automatically selected the method...?
Next Topic:New Interface Refactor?
Goto Forum:
  


Current Time: Thu Dec 26 16:01:16 GMT 2024

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

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

Back to the top