| Summary: | [implementation] NPE in SourceViewer | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Mathieu Velten <mathieu.velten> | ||||
| Component: | Text | Assignee: | Markus Keller <markus.kell.r> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | daniel_megert, faure.tristan, hihn, raksha.vasisht, remy.suen | ||||
| Version: | 3.6 | Flags: | daniel_megert:
review+
|
||||
| Target Milestone: | 3.6.1 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Mathieu Velten
JFace Text code is owned by Platform/Text. thanks, changed. Do you have steps to reproduce? > Do you have steps to reproduce?
It's OK, can easily be reproduced by adding
styles &= ~SWT.V_SCROLL;
in front of
createControl(parent, styles);
in the constructor of SourceViewer.
Created attachment 173441 [details]
Fix
An additional problem occurs when both scrollbars are hidden, e.g. with:
styles &= ~(SWT.V_SCROLL | SWT.H_SCROLL);
In that case, the header control (that shows if a file contains an error/warning) is not visible any more. Fix is in RulerLayout#layout(..).
Fix released to HEAD. thanks for the quick fix, it works. Released to R3_6_maintenance. Starting verification... Verified for 3.6.1 RC2 with M20100825-0800. Verified on Windows 7 using M20100825-0800. |