1 package net.sourceforge.phpeclipse.preferences;
2 import net.sourceforge.phpeclipse.IPreferenceConstants;
3 import net.sourceforge.phpeclipse.PHPeclipsePlugin;
5 import org.eclipse.jface.preference.IPreferenceStore;
6 import org.eclipse.jface.preference.StringFieldEditor;
7 import org.eclipse.swt.widgets.Composite;
8 import org.eclipse.ui.IWorkbench;
9 import org.eclipse.ui.IWorkbenchPreferencePage;
11 import net.sourceforge.phpeclipse.overlaypages.FieldEditorOverlayPage;
14 * This page will be added to the project's property page dialog when the
15 * "Properties..." popup menu item is selected
17 public class PHPMiscProjectPreferences extends FieldEditorOverlayPage
19 IWorkbenchPreferencePage,
20 IMiscProjectPreferences {
22 public final static String PREF_ID = "net.sourceforge.phpeclipse.preferences.PHPMiscProjectPreferences";
23 public PHPMiscProjectPreferences() {
29 * @see com.bdaum.overlayPages.FieldEditorOverlayPage#getPageId()
31 protected String getPageId() {
37 * @see org.eclipse.jface.preference.FieldEditorPreferencePage#createFieldEditors()
39 protected void createFieldEditors() {
40 Composite composite = getFieldEditorParent();
41 addField(new StringFieldEditor(IPreferenceConstants.PHP_BOOKMARK_DEFAULT,
42 PHPPreferencesMessages.getString("PHPMiscProjectPreferences.bookmark"),
45 //if (!isPropertyPage)) {
50 * @see org.eclipse.jface.preference.PreferencePage#doGetPreferenceStore()
52 protected IPreferenceStore doGetPreferenceStore() {
53 return PHPeclipsePlugin.getDefault().getPreferenceStore();
56 * @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
58 public void init(IWorkbench workbench) {
59 setDescription("Default entries for misc project settings.");