1 11 12 package org.eclipse.jdt.apt.ui.internal.preferences; 13 14 import org.eclipse.jdt.apt.ui.internal.AptUIPlugin; 15 import org.eclipse.jdt.apt.ui.internal.util.IAptHelpContextIds; 16 import org.eclipse.swt.widgets.Composite; 17 import org.eclipse.ui.preferences.IWorkbenchPreferenceContainer; 18 19 22 public class AptPreferencePage extends BasePreferencePage { 23 24 private static final String PREF_ID= "org.eclipse.jdt.apt.ui.preferences.aptPreferences"; private static final String PROP_ID= "org.eclipse.jdt.apt.ui.propertyPages.aptPreferences"; 27 public AptPreferencePage() { 28 setPreferenceStore(AptUIPlugin.getDefault().getPreferenceStore()); 29 30 setDescription(Messages.AptPreferencePage_preferences); 32 33 setTitle(Messages.AptPreferencePage_preferencesTitle); 35 } 36 37 40 public void createControl(Composite parent) { 41 IWorkbenchPreferenceContainer container= (IWorkbenchPreferenceContainer) getContainer(); 42 setConfigurationBlock(new AptConfigurationBlock(getNewStatusChangedListener(), getProject(), container)); 43 44 super.createControl(parent); 45 } 46 47 @Override 48 protected String getContextHelpId() { 49 return IAptHelpContextIds.APTCONFIGURATION_PREFERENCE_PAGE; 50 } 51 52 55 protected String getPreferencePageID() { 56 return PREF_ID; 57 } 58 59 62 protected String getPropertyPageID() { 63 return PROP_ID; 64 } 65 66 67 68 } 69 70 71 72 | Popular Tags |