Community
Participate
Working Groups
GridData class docs sez: " * </pre> * The second is to take advantage of convenience style bits defined * by <code>GridData</code>: * <pre> * button1.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL)); * </pre> * </p> * <p>" But when you look at docs for those styles, we have: * Not recommended. Use * <code>new GridData(SWT.FILL, int, boolean, boolean)</code> * instead. */ public static final int HORIZONTAL_ALIGN_FILL = 1 << 8; * Not recommended. Use * <code>new GridData(int, int, true, boolean)</code> * instead. */ public static final int GRAB_HORIZONTAL = 1 << 9; Why are we using as an example something that isn't recommended?
Created attachment 170678 [details] patch to fix GridData javadoc We added some convenience constructors in Eclipse 3.0 that use SWT constants (instead of GridData constants) for consistency with other SWT constructors. We forgot to update the class comment for GridData to refer to the new convenience constructors. Thanks for noticing!
Fixed > 20100602. This fix will be in Eclipse 3.6 RC4.
Wow, quick work guys! I'll be sure to post any other little things like this I notice now.
Thanks, Miles! Always appreciated.