/** * {@inheritdoc}
/* * @see org.eclipse.swt.events.SelectionListener#widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent)
	private Control createAnnotationsPage(Composite parent) {		Composite composite= new Composite(parent, SWT.NULL);		GridLayout layout= new GridLayout(); layout.numColumns= 2;		composite.setLayout(layout);						String text= PreferencesMessages.getString("JavaEditorPreferencePage.analyseAnnotationsWhileTyping"); //$NON-NLS-1$		addCheckBox(composite, text, PreferenceConstants.EDITOR_EVALUTE_TEMPORARY_PROBLEMS, 0);				text= PreferencesMessages.getString("JavaEditorPreferencePage.showQuickFixables"); //$NON-NLS-1$		addCheckBox(composite, text, PreferenceConstants.EDITOR_CORRECTION_INDICATION, 0);				addFiller(composite);						Label label= new Label(composite, SWT.LEFT);		label.setText(PreferencesMessages.getString("JavaEditorPreferencePage.annotationPresentationOptions")); //$NON-NLS-1$		GridData gd= new GridData(GridData.HORIZONTAL_ALIGN_FILL);		gd.horizontalSpan= 2;		label.setLayoutData(gd);		Composite editorComposite= new Composite(composite, 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);				fAnnotationList= new List(editorComposite, SWT.SINGLE | SWT.V_SCROLL | SWT.BORDER);		gd= new GridData(GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL);		gd.heightHint= convertHeightInCharsToPixels(10);		fAnnotationList.setLayoutData(gd);								Composite optionsComposite= new Composite(editorComposite, SWT.NONE);		layout= new GridLayout();		layout.marginHeight= 0;		layout.marginWidth= 0;		layout.numColumns= 2;		optionsComposite.setLayout(layout);		optionsComposite.setLayoutData(new GridData(GridData.FILL_BOTH));				fShowInTextCheckBox= new Button(optionsComposite, SWT.CHECK);        fShowInTextCheckBox.setText(PreferencesMessages.getString("JavaEditorPreferencePage.annotations.showInText")); //$NON-NLS-1$		gd= new GridData(GridData.FILL_HORIZONTAL);		gd.horizontalAlignment= GridData.BEGINNING;        gd.horizontalSpan= 2;		fShowInTextCheckBox.setLayoutData(gd);				fDecorationStyleCombo= new Combo(optionsComposite, SWT.READ_ONLY);		for(int i= 0; i < fAnnotationDecorationListModel.length; i++)			fDecorationStyleCombo.add(fAnnotationDecorationListModel[i][0]);		gd= new GridData(GridData.FILL_HORIZONTAL);		gd.horizontalAlignment= GridData.BEGINNING;        gd.horizontalSpan= 2;		gd.horizontalIndent= 20;		fDecorationStyleCombo.setLayoutData(gd);				fHighlightInTextCheckBox= new Button(optionsComposite, SWT.CHECK);		fHighlightInTextCheckBox.setText(PreferencesMessages.getString("TextEditorPreferencePage.annotations.highlightInText")); //$NON-NLS-1$		gd= new GridData(GridData.FILL_HORIZONTAL);		gd.horizontalAlignment= GridData.BEGINNING;		gd.horizontalSpan= 2;		fHighlightInTextCheckBox.setLayoutData(gd);				fShowInOverviewRulerCheckBox= new Button(optionsComposite, SWT.CHECK);        fShowInOverviewRulerCheckBox.setText(PreferencesMessages.getString("JavaEditorPreferencePage.annotations.showInOverviewRuler")); //$NON-NLS-1$		gd= new GridData(GridData.FILL_HORIZONTAL);		gd.horizontalAlignment= GridData.BEGINNING;        gd.horizontalSpan= 2;		fShowInOverviewRulerCheckBox.setLayoutData(gd);				fShowInVerticalRulerCheckBox= new Button(optionsComposite, SWT.CHECK);		fShowInVerticalRulerCheckBox.setText(PreferencesMessages.getString("JavaEditorPreferencePage.annotations.showInVerticalRuler")); //$NON-NLS-1$		gd= new GridData(GridData.FILL_HORIZONTAL);		gd.horizontalAlignment= GridData.BEGINNING;		gd.horizontalSpan= 2;		fShowInVerticalRulerCheckBox.setLayoutData(gd);				label= new Label(optionsComposite, SWT.LEFT);		label.setText(PreferencesMessages.getString("JavaEditorPreferencePage.annotations.color")); //$NON-NLS-1$		gd= new GridData();		gd.horizontalAlignment= GridData.BEGINNING;		label.setLayoutData(gd);		fAnnotationForegroundColorEditor= new ColorEditor(optionsComposite);		Button foregroundColorButton= fAnnotationForegroundColorEditor.getButton();		gd= new GridData(GridData.FILL_HORIZONTAL);		gd.horizontalAlignment= GridData.BEGINNING;		foregroundColorButton.setLayoutData(gd);		fAnnotationList.addSelectionListener(new SelectionListener() {			public void widgetDefaultSelected(SelectionEvent e) {				// do nothing			}						public void widgetSelected(SelectionEvent e) {				handleAnnotationListSelection();			}		});				fShowInTextCheckBox.addSelectionListener(new SelectionListener() {			public void widgetDefaultSelected(SelectionEvent e) {				// do nothing			}						public void widgetSelected(SelectionEvent e) {				int i= fAnnotationList.getSelectionIndex();				String key= fAnnotationColorListModel[i][2];				fOverlayStore.setValue(key, fShowInTextCheckBox.getSelection());				String decorationKey= fAnnotationColorListModel[i][6];				fDecorationStyleCombo.setEnabled(decorationKey != null && fShowInTextCheckBox.getSelection());			}		});				fHighlightInTextCheckBox.addSelectionListener(new SelectionListener() {			public void widgetDefaultSelected(SelectionEvent e) {				// do nothing			}						public void widgetSelected(SelectionEvent e) {				int i= fAnnotationList.getSelectionIndex();				String key= fAnnotationColorListModel[i][4];				fOverlayStore.setValue(key, fHighlightInTextCheckBox.getSelection());			}		});				fShowInOverviewRulerCheckBox.addSelectionListener(new SelectionListener() {			public void widgetDefaultSelected(SelectionEvent e) {				// do nothing			}						public void widgetSelected(SelectionEvent e) {				int i= fAnnotationList.getSelectionIndex();				String key= fAnnotationColorListModel[i][3];				fOverlayStore.setValue(key, fShowInOverviewRulerCheckBox.getSelection());			}		});				fShowInVerticalRulerCheckBox.addSelectionListener(new SelectionListener() {			public void widgetDefaultSelected(SelectionEvent e) {				// do nothing			}						public void widgetSelected(SelectionEvent e) {				int i= fAnnotationList.getSelectionIndex();				String key= fAnnotationColorListModel[i][5];				fOverlayStore.setValue(key, fShowInVerticalRulerCheckBox.getSelection());			}		});				foregroundColorButton.addSelectionListener(new SelectionListener() {			public void widgetDefaultSelected(SelectionEvent e) {				// do nothing			}						public void widgetSelected(SelectionEvent e) {				int i= fAnnotationList.getSelectionIndex();				String key= fAnnotationColorListModel[i][1];				PreferenceConverter.setValue(fOverlayStore, key, fAnnotationForegroundColorEditor.getColorValue());			}		});				fDecorationStyleCombo.addSelectionListener(new SelectionListener() {			/**			 * {@inheritdoc}			 */			public void widgetDefaultSelected(SelectionEvent e) {				// do nothing			}						/**			 * {@inheritdoc}			 */			public void widgetSelected(SelectionEvent e) {				int i= fAnnotationList.getSelectionIndex();				String key= fAnnotationColorListModel[i][6];				if (key != null) {					for (int j= 0; j < fAnnotationDecorationListModel.length; j++) {						if (fAnnotationDecorationListModel[j][0].equals(fDecorationStyleCombo.getText())) {							fOverlayStore.setValue(key, fAnnotationDecorationListModel[j][1]);							break;						}					}				}			}		});				return composite;	}