Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 17:20
Philipp Kehrbusch is currently offline Philipp KehrbuschFriend
Messages: 2
Registered: October 2014
Junior Member
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: Thu Jan 23 11:49:54 GMT 2025

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

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

Back to the top