Community
Participate
Working Groups
From eclipse corner. "leona lee" <leonal@ca.ibm.com> wrote in message news:9pf20v$fmo$1@rogue.oti.com... If I specified the noDefaultAndApplyButton()method in my PreferencePage, I noticed the buttons area is left in the page, is there any way to extend my page content area to use up this large space ? NOTES: EJP (10/3/2001 11:21:49 AM) I have hacked PreferencePage>>#createControl(Composite) adding the following lines and it worked as leona wanted. if (!createDefaultAndApplyButton) { if(buttonBar.getChildren().length == 0) buttonBar.dispose(); }
This bug has been fixed in build 20020125. The relevant code from PreferencePage.createControl() is as follows: if (createDefaultAndApplyButton) { //Lots of code snipped out } else { /* Check if there are any other buttons on the button bar. * If not, throw away the button bar composite. Otherwise * there is an unusually large button bar. */ if (buttonBar.getChildren().length < 1) buttonBar.dispose(); }