addCheckBox(behaviorComposite, label, WorkInProgressPreferencePage.PREF_SHOW_TEMP_PROBLEMS, 0);
addCheckBox(behaviorComposite, label, JavaEditorPreferencePage.PREF_SHOW_TEMP_PROBLEMS, 0);
	private Control createBehaviorPage(Composite parent) {		Composite behaviorComposite= new Composite(parent, SWT.NONE);		GridLayout layout= new GridLayout(); layout.numColumns= 2;		behaviorComposite.setLayout(layout);				String label= JavaUIMessages.getString("JavaEditorPreferencePage.textFont"); //$NON-NLS-1$		addTextFontEditor(behaviorComposite, label, AbstractTextEditor.PREFERENCE_FONT);				label= JavaUIMessages.getString("JavaEditorPreferencePage.displayedTabWidth"); //$NON-NLS-1$		addTextField(behaviorComposite, label, JavaSourceViewerConfiguration.PREFERENCE_TAB_WIDTH, 3, 0, true);		label= JavaUIMessages.getString("JavaEditorPreferencePage.printMarginColumn"); //$NON-NLS-1$		addTextField(behaviorComposite, label, CompilationUnitEditor.PRINT_MARGIN_COLUMN, 3, 0, true);						label= JavaUIMessages.getString("JavaEditorPreferencePage.insertSpaceForTabs"); //$NON-NLS-1$		addCheckBox(behaviorComposite, label, CompilationUnitEditor.SPACES_FOR_TABS, 0);				label= JavaUIMessages.getString("JavaEditorPreferencePage.showProblemsBeforeCompiling"); //$NON-NLS-1$		addCheckBox(behaviorComposite, label, CompilationUnitDocumentProvider.HANDLE_TEMPORARY_PROBLEMS, 0);		label= JavaUIMessages.getString("JavaEditorPreferencePage.highlightProblems"); //$NON-NLS-1$		addCheckBox(behaviorComposite, label, CompilationUnitEditor.PROBLEM_INDICATION, 0);		label= "&Indicate problems solvable with Quick Fix in vertical ruler";		addCheckBox(behaviorComposite, label, WorkInProgressPreferencePage.PREF_SHOW_TEMP_PROBLEMS, 0);		label= JavaUIMessages.getString("JavaEditorPreferencePage.showOverviewRuler"); //$NON-NLS-1$		addCheckBox(behaviorComposite, label, CompilationUnitEditor.OVERVIEW_RULER, 0);						label= JavaUIMessages.getString("JavaEditorPreferencePage.showLineNumbers"); //$NON-NLS-1$		addCheckBox(behaviorComposite, label, JavaEditor.LINE_NUMBER_RULER, 0);		label= JavaUIMessages.getString("JavaEditorPreferencePage.highlightMatchingBrackets"); //$NON-NLS-1$		addCheckBox(behaviorComposite, label, CompilationUnitEditor.MATCHING_BRACKETS, 0);				label= JavaUIMessages.getString("JavaEditorPreferencePage.highlightCurrentLine"); //$NON-NLS-1$		addCheckBox(behaviorComposite, label, CompilationUnitEditor.CURRENT_LINE, 0);						label= JavaUIMessages.getString("JavaEditorPreferencePage.showPrintMargin"); //$NON-NLS-1$		addCheckBox(behaviorComposite, label, CompilationUnitEditor.PRINT_MARGIN, 0);		Label l= new Label(behaviorComposite, SWT.LEFT);		GridData gd= new GridData(GridData.HORIZONTAL_ALIGN_FILL);		gd.horizontalSpan= 2;		l.setLayoutData(gd);				l= new Label(behaviorComposite, SWT.LEFT);		l.setText("Appearance color options:");		gd= new GridData(GridData.HORIZONTAL_ALIGN_FILL);		gd.horizontalSpan= 2;		l.setLayoutData(gd);		Composite editorComposite= new Composite(behaviorComposite, 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);				fAppearanceColorList= new List(editorComposite, SWT.SINGLE | SWT.V_SCROLL | SWT.BORDER);		gd= new GridData(GridData.FILL_BOTH);		gd.heightHint= convertHeightInCharsToPixels(5);		fAppearanceColorList.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(JavaUIMessages.getString("JavaEditorPreferencePage.color")); //$NON-NLS-1$		gd= new GridData();		gd.horizontalAlignment= GridData.BEGINNING;		l.setLayoutData(gd);		fAppearanceForegroundColorEditor= new ColorEditor(stylesComposite);		Button foregroundColorButton= fAppearanceForegroundColorEditor.getButton();		gd= new GridData(GridData.FILL_HORIZONTAL);		gd.horizontalAlignment= GridData.BEGINNING;		foregroundColorButton.setLayoutData(gd);		fAppearanceColorList.addSelectionListener(new SelectionListener() {			public void widgetDefaultSelected(SelectionEvent e) {				// do nothing			}			public void widgetSelected(SelectionEvent e) {				handleAppearanceColorListSelection();			}		});		foregroundColorButton.addSelectionListener(new SelectionListener() {			public void widgetDefaultSelected(SelectionEvent e) {				// do nothing			}			public void widgetSelected(SelectionEvent e) {				int i= fAppearanceColorList.getSelectionIndex();				String key= fAppearanceColorListModel[i][1];								PreferenceConverter.setValue(fOverlayStore, key, fAppearanceForegroundColorEditor.getColorValue());			}		});		return behaviorComposite;	}