]
Eric Williams reassigned ERT-711:
---------------------------------
Sprint: devex #162 February 2019
Assignee: Eric Williams
setTabs method in Text widget is ignored when style includes
SWT.SINGLE [EBZ#436085]
------------------------------------------------------------------------------------
Key: ERT-711
URL:
https://issues.jboss.org/browse/ERT-711
Project: Eclipse Release Train
Issue Type: Task
Components: Platform
Reporter: Friendly Jira Robot
Assignee: Eric Williams
Priority: Major
Labels: 4.12, SWT, bzira
Creating a text widget with the style flag set to SWT.SINGLE, means that the setTabs
method or at least the setTabStops method it calls) is ignored.
Text txtInput = new Text(inputHolder, SWT.SINGLE);
txtInput.setTabs(4);
txtInput.addTraverseListener(new TraverseListener() {
//code to ignore traverses
});
results in tabs still being shown as equal to 8 spaces.
This is coming from the "if ((style & SWT.SINGLE) != 0) return;" line in
the setTabStops method of the gtk Text widget. In the win32 version of the widget there is
no such check (and may explain the worksforme resolution of bug #34805)