1 11 package org.eclipse.jdt.internal.ui.preferences; 12 13 14 import org.eclipse.swt.widgets.Composite; 15 16 import org.eclipse.ui.PlatformUI; 17 18 import org.eclipse.jdt.internal.ui.IJavaHelpContextIds; 19 import org.eclipse.jdt.internal.ui.preferences.formatter.CodeFormatterConfigurationBlock; 20 import org.eclipse.jdt.internal.ui.preferences.formatter.ProfileConfigurationBlock; 21 22 25 public class CodeFormatterPreferencePage extends ProfilePreferencePage { 26 27 public static final String PREF_ID= "org.eclipse.jdt.ui.preferences.CodeFormatterPreferencePage"; public static final String PROP_ID= "org.eclipse.jdt.ui.propertyPages.CodeFormatterPreferencePage"; 30 public CodeFormatterPreferencePage() { 31 setTitle(PreferencesMessages.CodeFormatterPreferencePage_title); 33 } 34 35 38 public void createControl(Composite parent) { 39 super.createControl(parent); 40 PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), IJavaHelpContextIds.CODEFORMATTER_PREFERENCE_PAGE); 41 } 42 43 protected ProfileConfigurationBlock createConfigurationBlock(PreferencesAccess access) { 44 return new CodeFormatterConfigurationBlock(getProject(), access); 45 } 46 47 50 protected String getPreferencePageID() { 51 return PREF_ID; 52 } 53 54 57 protected String getPropertyPageID() { 58 return PROP_ID; 59 } 60 61 } 62 | Popular Tags |