[jbosstools-issues] [JBoss JIRA] (ERT-711) setTabs method in Text widget is ignored when style includes SWT.SINGLE [EBZ#436085]

Friendly Jira Robot (Jira) issues at jboss.org
Wed Feb 20 10:29:00 EST 2019


Friendly Jira Robot created ERT-711:
---------------------------------------

             Summary: 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


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)



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jbosstools-issues mailing list