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

Eric Williams (Jira) issues at jboss.org
Wed Feb 20 15:31:00 EST 2019


     [ https://issues.jboss.org/browse/ERT-711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Williams resolved ERT-711.
-------------------------------
    Resolution: Done


> 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)



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


More information about the jbosstools-issues mailing list