~ubuntu-branches/debian/sid/eclipse-cdt/sid

« back to all changes in this revision

Viewing changes to results/plugins/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/CEditorColoringPreferencePage.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2011-10-06 21:15:04 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20111006211504-8dutmljjih0zikfv
Tags: 8.0.1-1
* New upstream release.
* Split the JNI packages into a separate architecture dependent
  package and made eclipse-cdt architecture independent.
* Install JNI libraries into multiarch aware location
* Bumped Standards-Version to 3.9.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
7
 
 *
8
 
 * Contributors:
9
 
 *     IBM Corporation - initial API and implementation
10
 
 *     Anton Leherbauer (Wind River Systems)
11
 
 *******************************************************************************/
12
 
 
13
 
package org.eclipse.cdt.internal.ui.preferences;
14
 
 
15
 
import org.eclipse.swt.widgets.Composite;
16
 
import org.eclipse.swt.widgets.Label;
17
 
 
18
 
import org.eclipse.cdt.ui.CUIPlugin;
19
 
 
20
 
import org.eclipse.cdt.internal.ui.ICHelpContextIds;
21
 
 
22
 
 
23
 
 
24
 
/**
25
 
 * Code coloring preference page.
26
 
 * <p>
27
 
 * Note: Must be public since it is referenced from plugin.xml
28
 
 * </p>
29
 
 * 
30
 
 * @since 4.0
31
 
 */
32
 
public class CEditorColoringPreferencePage extends AbstractConfigurationBlockPreferencePage {
33
 
 
34
 
        /*
35
 
         * @see org.eclipse.ui.internal.editors.text.AbstractConfigureationBlockPreferencePage#getHelpId()
36
 
         */
37
 
        @Override
38
 
        protected String getHelpId() {
39
 
                return ICHelpContextIds.C_EDITOR_COLORS_PREF_PAGE;
40
 
        }
41
 
 
42
 
        /*
43
 
         * @see org.eclipse.ui.internal.editors.text.AbstractConfigurationBlockPreferencePage#setDescription()
44
 
         */
45
 
        @Override
46
 
        protected void setDescription() {
47
 
                String description= PreferencesMessages.CEditorPreferencePage_colors; 
48
 
                setDescription(description);
49
 
        }
50
 
        
51
 
        
52
 
        @Override
53
 
        protected Label createDescriptionLabel(Composite parent) {
54
 
                return null;
55
 
        }
56
 
        
57
 
        /*
58
 
         * @see org.org.eclipse.ui.internal.editors.text.AbstractConfigurationBlockPreferencePage#setPreferenceStore()
59
 
         */
60
 
        @Override
61
 
        protected void setPreferenceStore() {
62
 
                setPreferenceStore(CUIPlugin.getDefault().getPreferenceStore());
63
 
        }
64
 
 
65
 
        /*
66
 
         * @see org.eclipse.ui.internal.editors.text.AbstractConfigureationBlockPreferencePage#createConfigurationBlock(org.eclipse.ui.internal.editors.text.OverlayPreferenceStore)
67
 
         */
68
 
        @Override
69
 
        protected IPreferenceConfigurationBlock createConfigurationBlock(OverlayPreferenceStore overlayPreferenceStore) {
70
 
                return new CEditorColoringConfigurationBlock(overlayPreferenceStore);
71
 
        }
72
 
}