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
9
* Sergey Prigogin (Google) - initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.internal.ui.preferences;
13
import org.eclipse.ui.preferences.IWorkbenchPreferenceContainer;
15
import org.eclipse.cdt.ui.CUIPlugin;
17
import org.eclipse.cdt.internal.ui.ICHelpContextIds;
20
* The preference page for configuring header file substitution rules.
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$
26
public HeaderSubstitutionPreferencePage() {
27
setPreferenceStore(CUIPlugin.getDefault().getPreferenceStore());
28
// Only used when the page is shown programmatically.
29
setTitle(PreferencesMessages.HeaderSubstitutionPreferencePage_title);
33
protected OptionsConfigurationBlock createConfigurationBlock(IWorkbenchPreferenceContainer container) {
34
return new HeaderSubstitutionBlock(getNewStatusChangedListener(), getProject(), container);
38
protected String getHelpId() {
39
return ICHelpContextIds.INCLUDE_STYLE_PREFERENCE_PAGE;
43
protected String getPreferencePageId() {
48
protected String getPropertyPageId() {
50
// TODO(sprigogin): Project specific settings