Community
Participate
Working Groups
Welcome text does not wrap. Translation center must make best guess on where to enter hard line breaks.
Created attachment 52 [details] Welcome page does not wrap text
This is not just a translation issue. It is hard to do in English also. Would be very helpful if the text could wrap and size. That way if you resize your workbench window the text in the welcome editor is still presented well.
Spent some time trying to get this to work. Not as simple as just turning on SWT.WRAP for the styled text widgets that are used in the dialog. ScrolledComposite does not respond well to this nor does it appear to respond well to the no hscroll bar case. In the wrap case, we also need to do additional layout calls (e.g., during initial resize) since width affects height. Defer - more pressing things at this point...
Created attachment 834 [details] changes to welcome editor
Reopening for investigation as part of improvements to welcome page.
Andrew, I'm working on related StyledText wrapping/ScrolledComposite PRs, so I'm going to take this one back.
Fixed in build > 20020927. 1. An optional "format" attribute for the <welcomePage> tag was added. format can have a value of "wrap" or "nowrap". If the format attribute is "wrap", the text within the Welcome Editor will be wrapped to fit the size of its window. If the format attribute is "nowrap", the Welcome Editor will work as it currently does (i.e., no wrapping). If the format attribute is not specified, the default value "nowrap" will be used. (This maintains backward compatibility). 2. A paragraph tag <p> can be used inside of <intro> and <item> tags. Text between <p> tags will be treated as one continuous line (i.e., line breaks within the <p> text will be "soft") for wrapping purposes. The <p> tag only applies when format = "wrap". If format = "nowrap", the <p> tag will be ignored. Here is an example: <?xml version="1.0" encoding="UTF-8" ?> <welcomePage title="Eclipse Platform" format="wrap"> <intro><p>This page will help familiarize you with the Eclipse Workbench. To get started, read the sections below and click on the related links.</p></intro> <item><b>Perspectives, views and editors </b> <p>A window contains one or more perspectives. A perspective consists of views (e.g. Navigator) and editors for working with your resources.</p> </welcomePage>
Fix released.