Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 338505

Summary: [Forms] setText in ExpandableComposite cannot set title of a Section properly
Product: [Eclipse Project] Platform Reporter: Weiyun <weiyunmao>
Component: User AssistanceAssignee: platform-ua-inbox <platform-ua-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: ankur_sharma, cgold, prakash, weiyunmao
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

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