/******************************************************************************* * Copyright (c) 2011, 2012 Google, Inc and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Sergey Prigogin (Google) - initial API and implementation *******************************************************************************/ package org.eclipse.cdt.internal.ui.preferences; import org.eclipse.ui.preferences.IWorkbenchPreferenceContainer; import org.eclipse.cdt.ui.CUIPlugin; import org.eclipse.cdt.internal.ui.ICHelpContextIds; /* * The preference page for configuring styles of names. */ public class NameStylePreferencePage extends ConfigurationBlockPropertyAndPreferencePage { public static final String PREF_ID= "org.eclipse.cdt.ui.preferences.NameStylePreferencePage"; //$NON-NLS-1$ public static final String PROP_ID= "org.eclipse.cdt.ui.propertyPages.NameStylePreferencePage"; //$NON-NLS-1$ public NameStylePreferencePage() { setPreferenceStore(CUIPlugin.getDefault().getPreferenceStore()); // Only used when the page is shown programmatically. setTitle(PreferencesMessages.NameStylePreferencePage_title); } @Override protected OptionsConfigurationBlock createConfigurationBlock(IWorkbenchPreferenceContainer container) { return new NameStyleBlock(getNewStatusChangedListener(), getProject(), container); } @Override protected String getHelpId() { return ICHelpContextIds.NAME_STYLE_PREFERENCE_PAGE; } @Override protected String getPreferencePageId() { return PREF_ID; } @Override protected String getPropertyPageId() { return null; // TODO(sprigogin): Project specific settings // return PROP_ID; } }