1 11 package org.eclipse.jdt.internal.ui.preferences; 12 13 import org.eclipse.core.runtime.preferences.IScopeContext; 14 15 import org.eclipse.core.resources.IProject; 16 import org.eclipse.core.resources.ProjectScope; 17 18 import org.eclipse.jdt.internal.ui.IJavaHelpContextIds; 19 import org.eclipse.jdt.internal.ui.JavaPlugin; 20 21 26 public final class SaveParticipantPreferencePage extends AbstractConfigurationBlockPreferenceAndPropertyPage { 27 28 public static final String PROPERTY_PAGE_ID= "org.eclipse.jdt.ui.propertyPages.SaveParticipantPreferencePage"; public static final String PREFERENCE_PAGE_ID= "org.eclipse.jdt.ui.preferences.SaveParticipantPreferencePage"; 31 34 protected String getHelpId() { 35 return IJavaHelpContextIds.JAVA_EDITOR_PREFERENCE_PAGE; 36 } 37 38 41 protected IPreferenceAndPropertyConfigurationBlock createConfigurationBlock(IScopeContext context) { 42 return new SaveParticipantConfigurationBlock(context, this); 43 } 44 45 48 protected String getPreferencePageID() { 49 return PREFERENCE_PAGE_ID; 50 } 51 52 55 protected String getPropertyPageID() { 56 return PROPERTY_PAGE_ID; 57 } 58 59 62 protected boolean hasProjectSpecificOptions(IProject project) { 63 return JavaPlugin.getDefault().getSaveParticipantRegistry().hasSettingsInScope(new ProjectScope(project)); 64 } 65 } 66 | Popular Tags |