Label doubleClickLabel= new Label(composite, SWT.NONE); doubleClickLabel.setText(JavaUIMessages.getString("JavaBasePreferencePage.doubleclick.action"));  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); addRadioButton(doubleClickRadioGroup, JavaUIMessages.getString("JavaBasePreferencePage.doubleclick.expand"), DOUBLE_CLICK, DOUBLE_CLICK_EXPANDS);
	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.linkPackageView"), LINK_PACKAGES_TO_EDITOR); //$NON-NLS-1$		addCheckBox(composite, JavaUIMessages.getString("JavaBasePreferencePage.dblClick"), DOUBLE_CLICK_GOES_INTO); //$NON-NLS-1$		addCheckBox(composite, JavaUIMessages.getString("JavaBasePreferencePage.cuChildren"), SHOW_CU_CHILDREN); //$NON-NLS-1$		addCheckBox(composite, JavaUIMessages.getString("JavaBasePreferencePage.reconcileJavaViews"), RECONCILE_JAVA_VIEWS); //$NON-NLS-1$				fFolderButton= addCheckBox(composite, JavaUIMessages.getString("JavaBasePreferencePage.folders"), SRCBIN_FOLDERS_IN_NEWPROJ); //$NON-NLS-1$		fFolderButton.addSelectionListener(fSelectionListener);				Composite folders= new Composite(composite, SWT.NONE);		layout= new GridLayout();		layout.numColumns= 2;		layout.marginHeight= 0;		layout.marginWidth= 0;		folders.setLayout(layout);		GridData gd= new GridData(GridData.FILL_HORIZONTAL);		gd.horizontalIndent= convertWidthInCharsToPixels(4);		folders.setLayoutData(gd);				fSrcFolderNameText= addTextControl(folders, JavaUIMessages.getString("JavaBasePreferencePage.folders.src"), SRCBIN_SRCNAME); //$NON-NLS-1$		fBinFolderNameText= addTextControl(folders, JavaUIMessages.getString("JavaBasePreferencePage.folders.bin"), SRCBIN_BINNAME); //$NON-NLS-1$		fSrcFolderNameText.addModifyListener(fModifyListener);		fBinFolderNameText.addModifyListener(fModifyListener);				new Label(composite, SWT.NONE); // spacer		new Label(composite, SWT.NONE).setText(JavaUIMessages.getString("JavaBasePreferencePage.typeHierarchySettings"));  //$NON-NLS-1$				addCheckBox(composite, JavaUIMessages.getString("JavaBasePreferencePage.linkTypeHierarchy"), LINK_TYPEHIERARCHY_TO_EDITOR); //$NON-NLS-1$				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());			}		});		*/					validateFolders();			return composite;	}