Community
Participate
Working Groups
With the mentioned constructor new GridData(int style) a GridData can be constructed setting up a lot of properties. E.g. new GridData(GridData.FILL_HORIZONTAL) the following is set up (according to the constructor code) horizontalAlignement = GridData.Fill; verticalAlignment = GridData.CENTER; (default) grabExcessHorizontalSpace = true; grabExcessVerticalSpace = false; (default). Writing new GridData(GridData.FILL_HORIZONTAL) with GDF ends up in: GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).grab(true, false); which is much longer. I'd suggest to have a new static method in GDF like GridDataFactory.style(int style) to cover the above. With that we can also replace a lot of GridData usages in platform with GDF.
New Gerrit change created: https://git.eclipse.org/r/142921
can someone pls. do a review and merge the commit. afterwards I can rebase the commits for https://bugs.eclipse.org/bugs/show_bug.cgi?id=546990 and change the griddata coding.
We are currently in the 4.12 freeze, once 4.13 (1 or 2 weeks) opens, we can merge. I would suggest to have separate commits for the usage of new factory and would not fix that with Bug 54699.
(In reply to Lars Vogel from comment #3) > We are currently in the 4.12 freeze, once 4.13 (1 or 2 weeks) opens, we can > merge. > > I would suggest to have separate commits for the usage of new factory and > would not fix that with Bug 54699. +1
New Gerrit change created: https://git.eclipse.org/r/143715
Marcus, can you create a new bug for using this new factory and push at least one Gerrit to use it in platform code.
Once done, we should also add to N&N.
(In reply to Lars Vogel from comment #6) > Marcus, can you create a new bug for using this new factory and push at > least one Gerrit to use it in platform code. Yes I can do in a separate change. But this does mean some one can commit the changes from https://bugs.eclipse.org/bugs/show_bug.cgi?id=546990, correct? Thanks!
Gerrit change https://git.eclipse.org/r/142921 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=acedd505de1dbd819c0c8c5c6b9f30e20594a00c