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

« back to all changes in this revision

Viewing changes to core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/HeaderSubstitutionPreferencePage.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2013-10-03 20:30:16 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20131003203016-d4ug6l0xgosasumq
Tags: 8.2.1-1
* New upstream release.
* Updated autotools documentation sources.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*******************************************************************************
 
2
 * Copyright (c) 2013 Google, Inc 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
 *         Sergey Prigogin (Google) - initial API and implementation
 
10
 *******************************************************************************/
 
11
package org.eclipse.cdt.internal.ui.preferences;
 
12
 
 
13
import org.eclipse.ui.preferences.IWorkbenchPreferenceContainer;
 
14
 
 
15
import org.eclipse.cdt.ui.CUIPlugin;
 
16
 
 
17
import org.eclipse.cdt.internal.ui.ICHelpContextIds;
 
18
 
 
19
/*
 
20
 * The preference page for configuring header file substitution rules.
 
21
 */
 
22
public class HeaderSubstitutionPreferencePage extends ConfigurationBlockPropertyAndPreferencePage {
 
23
        public static final String PREF_ID= "org.eclipse.cdt.ui.preferences.HeaderSubstitutionPreferencePage"; //$NON-NLS-1$
 
24
        public static final String PROP_ID= "org.eclipse.cdt.ui.propertyPages.HeaderSubstitutionPreferencePage"; //$NON-NLS-1$
 
25
 
 
26
        public HeaderSubstitutionPreferencePage() {
 
27
                setPreferenceStore(CUIPlugin.getDefault().getPreferenceStore());
 
28
                // Only used when the page is shown programmatically.
 
29
                setTitle(PreferencesMessages.HeaderSubstitutionPreferencePage_title);            
 
30
        }
 
31
 
 
32
        @Override
 
33
        protected OptionsConfigurationBlock createConfigurationBlock(IWorkbenchPreferenceContainer container) {
 
34
                return new HeaderSubstitutionBlock(getNewStatusChangedListener(), getProject(), container);
 
35
        }
 
36
 
 
37
        @Override
 
38
        protected String getHelpId() {
 
39
                return ICHelpContextIds.INCLUDE_STYLE_PREFERENCE_PAGE;
 
40
        }
 
41
 
 
42
        @Override
 
43
        protected String getPreferencePageId() {
 
44
                return PREF_ID;
 
45
        }
 
46
 
 
47
        @Override
 
48
        protected String getPropertyPageId() {
 
49
                return null;
 
50
                // TODO(sprigogin): Project specific settings
 
51
//              return PROP_ID;
 
52
        }
 
53
}