Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348761 - SWT.WRAP missing in Button JavaDoc
Summary: SWT.WRAP missing in Button JavaDoc
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux
: P3 trivial (vote)
Target Milestone: 3.8 M1   Edit
Assignee: Felipe Heidrich CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-08 11:03 EDT by Ralf Sternberg CLA
Modified: 2012-02-23 10:55 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.