Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338505 - [Forms] setText in ExpandableComposite cannot set title of a Section properly
Summary: [Forms] setText in ExpandableComposite cannot set title of a Section properly
Status: CLOSED DUPLICATE of bug 233093
Alias: None
Product: Platform
Classification: Eclipse Project
Component: User Assistance (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: platform-ua-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-01 01:49 EST by Weiyun CLA
Modified: 2011-04-18 15:10 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Weiyun CLA 2011-03-01 01:49:54 EST
Build Identifier: 20100617-1415

import org.eclipse.ui.forms.widgets.Section;

public Section section;
private String COMMON_VARIABLES = "Common Settings";
section = toolkit.createSection(parent,Section.TWISTIE);
section.setText(COMMON_VARIABLES);

The result is the section displays title partially "Common ".

It happens all the time.
For "GetTimeFunction", it displays "GetTimeFunctio", missing an "n".
So it is not the problem of a blank space.

For "Test_Finish", it displays "Test_Finis", missing an "h".

Then I thought maybe the string exceeds the length limit for a title.
But it seemed not to be this case. Because I tried "111111111111111111111111111111", it was fine.

Reproducible: Always

Steps to Reproduce:
Please see to Details.
Comment 1 Ankur Sharma CLA 2011-03-01 02:10:25 EST
Moving to Platform UI
Comment 2 Prakash Rangaraj CLA 2011-03-01 02:14:13 EST
Forms maintained by UA.
Comment 3 Chris Goldthorpe CLA 2011-04-18 15:10:54 EDT

*** This bug has been marked as a duplicate of bug 233093 ***