Bug 5442 - [Welcome] TVT - Welcome text does not wrap
Summary: [Welcome] TVT - Welcome text does not wrap
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC All
: P2 enhancement (vote)
Target Milestone: 2.1 M2   Edit
Assignee: Lynne Kues CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate, nl
Depends on:
Blocks:
 
Reported: 2001-11-01 18:10 EST by Scott Fairbrother CLA
Modified: 2002-10-17 09:51 EDT (History)
1 user (show)

See Also:


Attachments
Welcome page does not wrap text (336.99 KB, image/jpeg)
2001-11-01 18:11 EST, Scott Fairbrother CLA
no flags Details
changes to welcome editor (21.06 KB, text/plain)
2002-05-15 18:21 EDT, Lynne Kues CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Fairbrother CLA 2001-11-01 18:10:23 EST
Welcome text does not wrap.  Translation center must make best guess on where 
to enter hard line breaks.
Comment 1 Scott Fairbrother CLA 2001-11-01 18:11:06 EST
Created attachment 52 [details]
Welcome page does not wrap text
Comment 2 Jeanette Deupree CLA 2002-03-14 10:06:38 EST
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.
Comment 3 Lynne Kues CLA 2002-05-15 18:20:47 EDT
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...
Comment 4 Lynne Kues CLA 2002-05-15 18:21:15 EDT
Created attachment 834 [details]
changes to welcome editor
Comment 5 Nick Edgar CLA 2002-08-01 14:04:44 EDT
Reopening for investigation as part of improvements to welcome page.
Comment 6 Lynne Kues CLA 2002-09-12 10:27:44 EDT
Andrew, I'm working on related StyledText wrapping/ScrolledComposite PRs, so 
I'm going to take this one back.
Comment 7 Lynne Kues CLA 2002-09-27 12:54:59 EDT
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>
Comment 8 Lynne Kues CLA 2002-09-27 12:58:07 EDT
Fix released.