X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/preferences/PHPPreviewProjectPreferences.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/preferences/PHPPreviewProjectPreferences.java deleted file mode 100644 index 26f9d55..0000000 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/preferences/PHPPreviewProjectPreferences.java +++ /dev/null @@ -1,69 +0,0 @@ -package net.sourceforge.phpeclipse.preferences; -import net.sourceforge.phpeclipse.IPreferenceConstants; -import net.sourceforge.phpeclipse.PHPeclipsePlugin; - -import org.eclipse.jface.preference.BooleanFieldEditor; -import org.eclipse.jface.preference.IPreferenceStore; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.ui.IWorkbench; -import org.eclipse.ui.IWorkbenchPreferencePage; - -import net.sourceforge.phpeclipse.overlaypages.FieldEditorOverlayPage; -/** - * - * This page will be added to the project's property page dialog when the - * "Properties..." popup menu item is selected - */ -public class PHPPreviewProjectPreferences extends FieldEditorOverlayPage - implements - IWorkbenchPreferencePage { - public final static String PREF_ID = "net.sourceforge.phpeclipse.preferences.PHPPreviewProjectPreferences"; - - public PHPPreviewProjectPreferences() { - super(GRID, true); - } - /* - * (non-Javadoc) - * - * @see com.bdaum.overlayPages.FieldEditorOverlayPage#getPageId() - */ - protected String getPageId() { - return PREF_ID; - } - /* - * (non-Javadoc) - * - * @see org.eclipse.jface.preference.FieldEditorPreferencePage#createFieldEditors() - */ - protected void createFieldEditors() { - Composite composite = getFieldEditorParent(); - addField(new BooleanFieldEditor( - IPreferenceConstants.PHP_AUTO_PREVIEW_DEFAULT, PHPPreferencesMessages - .getString("PHPPreviewProjectPreferences.auto_preview"), composite)); - addField(new BooleanFieldEditor( - IPreferenceConstants.PHP_BRING_TO_TOP_PREVIEW_DEFAULT, PHPPreferencesMessages - .getString("PHPPreviewProjectPreferences.bring_to_top_preview"), composite)); - addField(new BooleanFieldEditor( - IPreferenceConstants.PHP_SHOW_HTML_FILES_LOCAL, PHPPreferencesMessages - .getString("PHPPreviewProjectPreferences.show_html_files_local"), composite)); - //if (!isPropertyPage)) { - // - //} - } - /* - * (non-Javadoc) - * - * @see org.eclipse.jface.preference.PreferencePage#doGetPreferenceStore() - */ - protected IPreferenceStore doGetPreferenceStore() { - return PHPeclipsePlugin.getDefault().getPreferenceStore(); - } - /* - * (non-Javadoc) - * - * @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench) - */ - public void init(IWorkbench workbench) { - setDescription("Default entries for Previewer."); - } -} \ No newline at end of file