label= PreferencesMessages.getString("JavaEditorPreferencePage.completePrefixes"); addCheckBox(contentAssistComposite, label, PreferenceConstants.CODEASSIST_PREFIX_COMPLETION, 0);
	private Control createContentAssistPage(Composite parent) {		Composite contentAssistComposite= new Composite(parent, SWT.NULL);		GridLayout layout= new GridLayout(); 		layout.numColumns= 2;		contentAssistComposite.setLayout(layout);		addCompletionRadioButtons(contentAssistComposite);		String label;				label= PreferencesMessages.getString("JavaEditorPreferencePage.insertSingleProposalsAutomatically"); //$NON-NLS-1$		addCheckBox(contentAssistComposite, label, PreferenceConstants.CODEASSIST_AUTOINSERT, 0);				label= PreferencesMessages.getString("JavaEditorPreferencePage.showOnlyProposalsVisibleInTheInvocationContext"); //$NON-NLS-1$		addCheckBox(contentAssistComposite, label, PreferenceConstants.CODEASSIST_SHOW_VISIBLE_PROPOSALS, 0);				label= PreferencesMessages.getString("JavaEditorPreferencePage.presentProposalsInAlphabeticalOrder"); //$NON-NLS-1$		addCheckBox(contentAssistComposite, label, PreferenceConstants.CODEASSIST_ORDER_PROPOSALS, 0);				label= PreferencesMessages.getString("JavaEditorPreferencePage.automaticallyAddImportInsteadOfQualifiedName"); //$NON-NLS-1$		addCheckBox(contentAssistComposite, label, PreferenceConstants.CODEASSIST_ADDIMPORT, 0);		label= PreferencesMessages.getString("JavaEditorPreferencePage.fillArgumentNamesOnMethodCompletion"); //$NON-NLS-1$		Button button= addCheckBox(contentAssistComposite, label, PreferenceConstants.CODEASSIST_FILL_ARGUMENT_NAMES, 0);		label= PreferencesMessages.getString("JavaEditorPreferencePage.guessArgumentNamesOnMethodCompletion"); //$NON-NLS-1$		fGuessMethodArgumentsButton= addCheckBox(contentAssistComposite, label, PreferenceConstants.CODEASSIST_GUESS_METHOD_ARGUMENTS, 0);		createDependency(button, fGuessMethodArgumentsButton);		label= PreferencesMessages.getString("JavaEditorPreferencePage.enableAutoActivation"); //$NON-NLS-1$		final Button autoactivation= addCheckBox(contentAssistComposite, label, PreferenceConstants.CODEASSIST_AUTOACTIVATION, 0);		autoactivation.addSelectionListener(new SelectionAdapter(){            public void widgetSelected(SelectionEvent e) {            	updateAutoactivationControls();            }		});						Control[] labelledTextField;		label= PreferencesMessages.getString("JavaEditorPreferencePage.autoActivationDelay"); //$NON-NLS-1$		labelledTextField= addLabelledTextField(contentAssistComposite, label, PreferenceConstants.CODEASSIST_AUTOACTIVATION_DELAY, 4, 0, true);		fAutoInsertDelayLabel= getLabelControl(labelledTextField);		fAutoInsertDelayText= getTextControl(labelledTextField);				label= PreferencesMessages.getString("JavaEditorPreferencePage.autoActivationTriggersForJava"); //$NON-NLS-1$		labelledTextField= addLabelledTextField(contentAssistComposite, label, PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA, 4, 0, false);		fAutoInsertJavaTriggerLabel= getLabelControl(labelledTextField);		fAutoInsertJavaTriggerText= getTextControl(labelledTextField);				label= PreferencesMessages.getString("JavaEditorPreferencePage.autoActivationTriggersForJavaDoc"); //$NON-NLS-1$		labelledTextField= addLabelledTextField(contentAssistComposite, label, PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVADOC, 4, 0, false);		fAutoInsertJavaDocTriggerLabel= getLabelControl(labelledTextField);		fAutoInsertJavaDocTriggerText= getTextControl(labelledTextField);				Label l= new Label(contentAssistComposite, SWT.LEFT);		l.setText(PreferencesMessages.getString("JavaEditorPreferencePage.codeAssist.colorOptions")); //$NON-NLS-1$		GridData gd= new GridData(GridData.HORIZONTAL_ALIGN_FILL);		gd.horizontalSpan= 2;		l.setLayoutData(gd);		Composite editorComposite= new Composite(contentAssistComposite, SWT.NONE);		layout= new GridLayout();		layout.numColumns= 2;		layout.marginHeight= 0;		layout.marginWidth= 0;		editorComposite.setLayout(layout);		gd= new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.FILL_VERTICAL);		gd.horizontalSpan= 2;		editorComposite.setLayoutData(gd);				fContentAssistColorList= new List(editorComposite, SWT.SINGLE | SWT.V_SCROLL | SWT.BORDER);		gd= new GridData(GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL);		gd.heightHint= convertHeightInCharsToPixels(8);		fContentAssistColorList.setLayoutData(gd);								Composite stylesComposite= new Composite(editorComposite, SWT.NONE);		layout= new GridLayout();		layout.marginHeight= 0;		layout.marginWidth= 0;		layout.numColumns= 2;		stylesComposite.setLayout(layout);		stylesComposite.setLayoutData(new GridData(GridData.FILL_BOTH));				l= new Label(stylesComposite, SWT.LEFT);		l.setText(PreferencesMessages.getString("JavaEditorPreferencePage.codeAssist.color")); //$NON-NLS-1$		gd= new GridData();		gd.horizontalAlignment= GridData.BEGINNING;		l.setLayoutData(gd);		fContentAssistColorEditor= new ColorEditor(stylesComposite);		Button colorButton= fContentAssistColorEditor.getButton();		gd= new GridData(GridData.FILL_HORIZONTAL);		gd.horizontalAlignment= GridData.BEGINNING;		colorButton.setLayoutData(gd);		fContentAssistColorList.addSelectionListener(new SelectionListener() {			public void widgetDefaultSelected(SelectionEvent e) {				// do nothing			}			public void widgetSelected(SelectionEvent e) {				handleContentAssistColorListSelection();			}		});		colorButton.addSelectionListener(new SelectionListener() {			public void widgetDefaultSelected(SelectionEvent e) {				// do nothing			}			public void widgetSelected(SelectionEvent e) {				int i= fContentAssistColorList.getSelectionIndex();				String key= fContentAssistColorListModel[i][1];								PreferenceConverter.setValue(fOverlayStore, key, fContentAssistColorEditor.getColorValue());			}		});		return contentAssistComposite;	}