Community
Participate
Working Groups
I am contributing custom button in my PreferencePage using contributeButtons(Composite parent) method. Javadoc for PreferencePage.contributeButtons method suggest that for each button a subclass contributes, it must also increase the parent's grid layout number of columns by one; that is: ((GridLayout) parent.getLayout()).numColumns++; But this has no effect because PreferencePage.createControl method overwrites this value: contributeButtons(buttonBar); if (createApplyButton || createDefaultButton) { layout.numColumns = 1 + (createApplyButton && createDefaultButton ? 1 : 0);
Would you like to contribute a patch? https://wiki.eclipse.org/Platform_UI/How_to_Contribute
New Gerrit change created: https://git.eclipse.org/r/54848
Gerrit change https://git.eclipse.org/r/54848 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=07b24b22a6ac3783a154d6d0c5fb6d15857fd94e
Thanks for the fix, Dariusz!
*** Bug 482697 has been marked as a duplicate of this bug. ***
Requesting to backport the fix to 4.5.2.
New Gerrit change created: https://git.eclipse.org/r/61148
(In reply to Brian de Alwis from comment #6) > Requesting to backport the fix to 4.5.2. Is this a regression? Is it critical enough to backport? Please explain reasons and possible impacts.
(In reply to Dani Megert from comment #8) > (In reply to Brian de Alwis from comment #6) > > Requesting to backport the fix to 4.5.2. > > Is this a regression? Is it critical enough to backport? Please explain > reasons and possible impacts. It's a regression to the API claimed in the Javadoc. There is no impact on existing code. I am jumping the gun requesting the backport: no users have requested it, but it's the second identical bug report against 4.5.
+1 for backport from component lead. Fix is save and we are violating our API Javadoc contract.
(In reply to Brian de Alwis from comment #9) > (In reply to Dani Megert from comment #8) > > (In reply to Brian de Alwis from comment #6) > > > Requesting to backport the fix to 4.5.2. > > > > Is this a regression? Is it critical enough to backport? Please explain > > reasons and possible impacts. > > It's a regression to the API claimed in the Javadoc. There is no impact on > existing code. > > I am jumping the gun requesting the backport: no users have requested it, > but it's the second identical bug report against 4.5. +1.
Gerrit change https://git.eclipse.org/r/61148 was merged to [R4_5_maintenance]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=1999afb2acc5817ed89356260272bda63b61529b
Thanks everybody. Fixed in 4.5.2.
Verified in 4.5.2.M20160127-1000