Bug 205734 - Add I-beam TextStyle
Summary: Add I-beam TextStyle
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2007-10-08 10:11 EDT by Dani Megert CLA
Modified: 2017-07-28 09:40 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2007-10-08 10:11:23 EDT
N20071005-0010.

Platform Text is in the middle of moving away from its custom draw strategies and there is one missing piece: the I-beam strategy that is used to indicate the caret location when exiting linked mode. The I-beam is currently a vertical line on the left side of the given offset. The length is usually 0.

The important thing is that we can also mark positions behind the last character of a line by using a style range with offset= last char + 1 and length= 0.

Here's our code:
org.eclipse.ui.texteditor.SourceViewerDecorationSupport.IBeamStrategy.draw(Annotation, GC, StyledText, int, int, Color)
Comment 1 Dani Megert CLA 2007-10-08 10:18:24 EDT
A possible solution would be to let underline style with lenght 0 do this.
Comment 2 Felipe Heidrich CLA 2009-08-14 08:56:45 EDT
Your bug has been moved to triage, visit http://www.eclipse.org/swt/triage.php for more info.
Comment 3 Eric Williams CLA 2017-07-28 09:40:59 EDT
Ping, is this still valid?