Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to highlight multiple lines in an AbstractTextEditor?
How to highlight multiple lines in an AbstractTextEditor? [message #1455708] Wed, 29 October 2014 13:20
Eclipse UserFriend
I am trying to highlight multiple lines in an AbstractTextEditor and already tried using
Code: [Select all] [Show/ hide]

itexteditor.sethighlightRange(offset, length, moveCursor)

. The range is set correctly (I checked it using
Code: [Select all] [Show/ hide]

itexteditor.gethighlightRange()

) and the cursor is moved to the beginning of this range as expected. However, the only highlighting I get is due to the cursor position. This means, the whole line in which the cursor is in gets highlighted, but nothing else no matter what I set the range to.

Am I doing something wrong or is this the expected behaviour?
Previous Topic:Running Platform UI Test on OsX
Next Topic:Constant "PermGen space" crashes in Helios: what is this?
Goto Forum:
  


Current Time: Mon Jul 07 15:43:56 EDT 2025

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

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

Back to the top