Bug 174228 [Preferences] PreferencePage javadoc needs tidying up
Build ID: I20061102-1715 Steps To Reproduce: comment for PreferencePage.setContainer() is /** (non-Javadoc) * Method declared on IPreferencePage. */ but should be /* (non-Javadoc) * Method declared on IPreferencePage. */ More information:
bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferencePage.java
body = createContents(content);
        if (body != null) {
			
            body.setLayoutData(new GridData(GridData.FILL_BOTH));
		}
        Composite buttonBar = new Composite(content, SWT.NONE);
        layout = new GridLayout();
        layout.numColumns = 0;
        layout.marginHeight = 0;
        layout.marginWidth = 0;
        layout.makeColumnsEqualWidth = false;
        buttonBar.setLayout(layout);
        
        gd = new GridData(GridData.HORIZONTAL_ALIGN_END);
        
        buttonBar.setLayoutData(gd);
        contributeButtons(buttonBar);
        
        if (createDefaultAndApplyButton) {
            layout.numColumns = layout.numColumns + 2;
			String[] labels = JFaceResources.getStrings(new String[] {
					"defaults", "apply" }); 
			int widthHint = convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH);
			defaultsButton = new Button(buttonBar, SWT.PUSH);
			defaultsButton.setText(labels[0]);
			Dialog.applyDialogFont(defaultsButton);
			GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
			Point minButtonSize = defaultsButton.computeSize(SWT.DEFAULT,
					SWT.DEFAULT, true);
			data.widthHint = Math.max(widthHint, minButtonSize.x);