Bug 2890 - EC - Area left by noDefaultAndApplyButton (1GL10TN)
Summary: EC - Area left by noDefaultAndApplyButton (1GL10TN)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Ian Petersen CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:45 EDT by Kevin Haaland CLA
Modified: 2002-02-04 11:13 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Haaland CLA 2001-10-10 22:45:31 EDT
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();
}
Comment 1 Ian Petersen CLA 2002-02-04 11:13:22 EST
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();
}