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

Bug 282524

Summary: [JFace] Section#setTextClient() does not work anymore
Product: [RT] RAP Reporter: Björn Fischer <b.fischer>
Component: WorkbenchAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ivan
Version: 1.3   
Target Milestone: 1.3 M1   
Hardware: All   
OS: All   
Whiteboard:

Description Björn Fischer CLA 2009-07-06 10:15:08 EDT
After uprading to current CVS Head I realized that setting a textClient on a Section has no effect anymore. This is possibly somehow connected to https://bugs.eclipse.org/bugs/show_bug.cgi?id=277671.

The following code should lead to a ToolBar in the top left corner of the section (and it does in RAP 1.2), but the ToolBar does not show up using current CVS.

------------------------------------------
Section searchSection = formsToolkit.createSection(body, Section.TITLE_BAR | Section.TWISTIE);
ToolBar toolBar = new ToolBar(searchSection, SWT.FLAT);
ToolItem toolItem = new ToolItem(toolBar, SWT.PUSH);
toolItem.setToolTipText("Execute search");
toolItem.setImage(image);
searchSection.setTextClient(toolBar);
-------------------------------------------
Comment 1 Björn Fischer CLA 2009-07-06 10:24:28 EDT
Fixed in CVS Head (by Ivan)