new Label(composite, SWT.NONE); Label doubleClickLabel1= new Label(composite, SWT.NONE); doubleClickLabel1.setText(JavaUIMessages.getString("JavaBasePreferencePage.updateJavaViews"));  Composite doubleClickRadioGroup1= new Composite(composite, SWT.NONE); layout= new GridLayout(); layout.marginHeight= 0; doubleClickRadioGroup1.setLayout(layout); Button onSave= addRadioButton(doubleClickRadioGroup1, JavaUIMessages.getString("JavaBasePreferencePage.onSave"), UPDATE_JAVA_VIEWS, UPDATE_ON_SAVE); Button whileEditing= addRadioButton(doubleClickRadioGroup1, JavaUIMessages.getString("JavaBasePreferencePage.whileEditing"), UPDATE_JAVA_VIEWS, UPDATE_WHILE_EDITING); Label notice= new Label(composite, SWT.WRAP); notice.setText(JavaUIMessages.getString("JavaBasePreferencePage.notice.outliner")); GridData noticeData= new GridData(GridData.FILL_HORIZONTAL); noticeData.grabExcessHorizontalSpace= true; noticeData.widthHint= convertWidthInCharsToPixels(60); notice.setLayoutData(noticeData);  if (! onSave.getSelection() && !whileEditing.getSelection()){ boolean updateOnSaveOldPreference= JavaPlugin.getDefault().getPreferenceStore().getBoolean(RECONCILE_JAVA_VIEWS); if (updateOnSaveOldPreference) whileEditing.setSelection(true); else onSave.setSelection(true); }
	protected Control createContents(Composite parent) {		initializeDialogUnits(parent);				Composite composite= new Composite(parent, SWT.NONE);		GridLayout layout= new GridLayout();		layout.marginHeight= 0;		layout.marginWidth= 0;		composite.setLayout(layout);		addCheckBox(composite, JavaUIMessages.getString("JavaBasePreferencePage.reconcileJavaViews"), RECONCILE_JAVA_VIEWS); //$NON-NLS-1$				new Label(composite, SWT.NONE); // spacer		new Label(composite, SWT.NONE).setText(JavaUIMessages.getString("JavaBasePreferencePage.linkSettings.text")); //$NON-NLS-1$		addCheckBox(composite, JavaUIMessages.getString("JavaBasePreferencePage.linkJavaBrowsingViewsCheckbox.text"), LINK_BROWSING_VIEW_TO_EDITOR); //$NON-NLS-1$		addCheckBox(composite, JavaUIMessages.getString("JavaBasePreferencePage.linkPackageView"), LINK_PACKAGES_TO_EDITOR); //$NON-NLS-1$		addCheckBox(composite, JavaUIMessages.getString("JavaBasePreferencePage.linkTypeHierarchy"), LINK_TYPEHIERARCHY_TO_EDITOR); //$NON-NLS-1$		new Label(composite, SWT.NONE); // spacer		Label doubleClickLabel= new Label(composite, SWT.NONE);		doubleClickLabel.setText(JavaUIMessages.getString("JavaBasePreferencePage.doubleclick.action"));  //$NON-NLS-1$		Composite doubleClickRadioGroup= new Composite(composite, SWT.NONE);		layout= new GridLayout();		layout.marginHeight= 0;		doubleClickRadioGroup.setLayout(layout);				addRadioButton(doubleClickRadioGroup, JavaUIMessages.getString("JavaBasePreferencePage.doubleclick.gointo"), DOUBLE_CLICK, DOUBLE_CLICK_GOES_INTO); //$NON-NLS-1$		addRadioButton(doubleClickRadioGroup, JavaUIMessages.getString("JavaBasePreferencePage.doubleclick.expand"), DOUBLE_CLICK, DOUBLE_CLICK_EXPANDS); //$NON-NLS-1$		new Label(composite, SWT.NONE); // spacer		Label label= new Label(composite, SWT.NONE);		label.setText(JavaUIMessages.getString("JavaBasePreferencePage.openTypeHierarchy")); //$NON-NLS-1$				Composite radioGroup= new Composite(composite, SWT.NONE);		layout= new GridLayout();		layout.marginHeight= 0;		radioGroup.setLayout(layout);				addRadioButton(radioGroup, JavaUIMessages.getString("JavaBasePreferencePage.inPerspective"), OPEN_TYPE_HIERARCHY, OPEN_TYPE_HIERARCHY_IN_PERSPECTIVE);  //$NON-NLS-1$		addRadioButton(radioGroup, JavaUIMessages.getString("JavaBasePreferencePage.inView"), OPEN_TYPE_HIERARCHY, OPEN_TYPE_HIERARCHY_IN_VIEW_PART); //$NON-NLS-1$		/* Need support from workbench for this. See http://dev.eclipse.org/bugs/show_bug.cgi?id=3962		final Button reuse= addCheckBox(composite, "&Reuse Type Hierarchy perspective in same window", OPEN_TYPE_HIERARCHY_REUSE_PERSPECTIVE);		reuse.setEnabled(perspective.getSelection());		perspective.addSelectionListener(new SelectionAdapter() {			public void widgetSelected(SelectionEvent e) {				reuse.setEnabled(perspective.getSelection());			}		});		*/			return composite;	}