1
/*******************************************************************************
2
* Copyright (c) 2000, 2008 IBM Corporation and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* IBM Corporation - initial API and implementation
10
* Anton Leherbauer (Wind River Systems)
11
*******************************************************************************/
13
package org.eclipse.cdt.internal.ui.preferences;
15
import org.eclipse.swt.widgets.Composite;
16
import org.eclipse.swt.widgets.Label;
18
import org.eclipse.cdt.ui.CUIPlugin;
20
import org.eclipse.cdt.internal.ui.ICHelpContextIds;
25
* Code coloring preference page.
27
* Note: Must be public since it is referenced from plugin.xml
32
public class CEditorColoringPreferencePage extends AbstractConfigurationBlockPreferencePage {
35
* @see org.eclipse.ui.internal.editors.text.AbstractConfigureationBlockPreferencePage#getHelpId()
38
protected String getHelpId() {
39
return ICHelpContextIds.C_EDITOR_COLORS_PREF_PAGE;
43
* @see org.eclipse.ui.internal.editors.text.AbstractConfigurationBlockPreferencePage#setDescription()
46
protected void setDescription() {
47
String description= PreferencesMessages.CEditorPreferencePage_colors;
48
setDescription(description);
53
protected Label createDescriptionLabel(Composite parent) {
58
* @see org.org.eclipse.ui.internal.editors.text.AbstractConfigurationBlockPreferencePage#setPreferenceStore()
61
protected void setPreferenceStore() {
62
setPreferenceStore(CUIPlugin.getDefault().getPreferenceStore());
66
* @see org.eclipse.ui.internal.editors.text.AbstractConfigureationBlockPreferencePage#createConfigurationBlock(org.eclipse.ui.internal.editors.text.OverlayPreferenceStore)
69
protected IPreferenceConfigurationBlock createConfigurationBlock(OverlayPreferenceStore overlayPreferenceStore) {
70
return new CEditorColoringConfigurationBlock(overlayPreferenceStore);