Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 318356

Summary: When a text editor uses folding ("ProjectionSupport"), StyledText#setTabStops and StyledText#setLineTabStops cause major rendering problems
Product: [Eclipse Project] Platform Reporter: Nick Gravgaard <me>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: major    
Priority: P3 CC: a.lagopus, antony.trupe, benjamin.guillet, browseria, cagara, cruelfate, dave.keber, delatorre.juanpablo, gautier.desaintmartinlacaze, khonkhortisan, kostmo, madams55075, markus, marvingnils, nicholas.walton+eclipse, psuzzi, remy.suen, sergwish1, tanmatra, thatnitind
Version: 4.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug
Bug Depends on:    
Bug Blocks: 149603    

Description Nick Gravgaard CLA 2010-06-29 12:53:24 EDT
Build Identifier: I20100608-0911

It seems that when a text editor uses folding ("ProjectionSupport"), StyledText.setTabstops() causes major rendering problems. If you comment out the createPartControl() method in XMLEditor.java in attachment 172935 [details] the problem goes away.

Reproducible: Always

Steps to Reproduce:
1. Using the plugin in attachment 172935 [details], open an XML file in "Sample XML Editor" and start typing.
Comment 1 Juan Pablo de la Torre CLA 2013-01-31 15:23:54 EST
Why isn't this being attended if the solution is already in the comments?
Comment 2 Michael Adams CLA 2013-09-01 22:40:56 EDT
If voting was enabled (at least I can't find the "button" to '+1' this...).  I'd vote this one up.
Comment 3 David Liszewski CLA 2014-03-03 16:57:21 EST
(In reply to Michael Adams from comment #2)
> If voting was enabled (at least I can't find the "button" to '+1' this...). 
> I'd vote this one up.

It's on this line in parenthesis:

  Importance:	P3 major with 48 votes (vote)

Login is required.

I voted this up as well because of http://nickgravgaard.com/elastictabstops/
Comment 4 Browser Ia CLA 2014-12-15 17:07:40 EST
I too, voted this up in order to get Always Aligned as an Eclipse plugin. But this report is over 4 years old...it is not clear to me if it is still relevant, or what is required (for Mars) to fix it...Folding _does_ appear to have many cases where it "breaks" the editor in both Luna and Mars, it seems to me this fix would kill more than two birds with one stone...
Comment 5 Kyle Mills CLA 2016-11-21 19:05:38 EST
(In reply to Nick Gravgaard from comment #0)
> Steps to Reproduce:
> 1. Using the plugin in attachment 172935 [details], open an XML file in
> "Sample XML Editor" and start typing.

How do I load the plugin into Eclipse?

(In reply to Juan Pablo de la Torre from comment #1)
> Why isn't this being attended if the solution is already in the comments?

The workaround is for the text editor to drop support for code folding while the plugin is enabled.
Comment 6 Eclipse Genie CLA 2019-12-16 14:59:14 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.