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

Bug 348761

Summary: SWT.WRAP missing in Button JavaDoc
Product: [Eclipse Project] Platform Reporter: Ralf Sternberg <rsternberg>
Component: SWTAssignee: Felipe Heidrich <eclipse.felipe>
Status: RESOLVED FIXED QA Contact:
Severity: trivial    
Priority: P3 CC: eclipse.felipe, max
Version: 3.7   
Target Milestone: 3.8 M1   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Ralf Sternberg CLA 2011-06-08 11:03:59 EDT
It seems that the WRAP style is missing in the Button JavaDoc although the button does support this style flag in 3.7:
http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet345.java?view=co
Comment 1 Felipe Heidrich CLA 2011-06-29 10:49:29 EDT
fixed (SWT.java and Button.java) in HEAD
Comment 2 M. Emmerling CLA 2012-02-23 03:51:19 EST
Just for completion:

We had serious troubles getting a group of radiobuttons to wrap propperly, although we tried every sort of layout.

The solution was to set SWT.WRAP as a style for the parent composite (group), too.

Maybe the SWT.WRAP style should be added accordingly to the Composite API?
Comment 3 Felipe Heidrich CLA 2012-02-23 10:55:51 EST
(In reply to comment #2)
> Just for completion:
> 
> We had serious troubles getting a group of radiobuttons to wrap propperly,
> although we tried every sort of layout.
> 
> The solution was to set SWT.WRAP as a style for the parent composite (group),
> too.
> 
> Maybe the SWT.WRAP style should be added accordingly to the Composite API?

SWT.WRAP is not suppose to be set on a Composite. Not sure what you have but it is certainly an accident if it fixed your problem.
Note that SWT.WRAP has the same value as SWT.SHADOW_ETCHED_OUT which is defined for group.