Removed UI.
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / ui / preferences / CompilerPreferencePage.java
diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/preferences/CompilerPreferencePage.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/preferences/CompilerPreferencePage.java
deleted file mode 100644 (file)
index 16b4c43..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package net.sourceforge.phpdt.internal.ui.preferences;
-
-import net.sourceforge.phpdt.internal.ui.IJavaHelpContextIds;
-import net.sourceforge.phpdt.internal.ui.dialogs.StatusUtil;
-import net.sourceforge.phpdt.internal.ui.wizards.IStatusChangeListener;
-import net.sourceforge.phpeclipse.PHPeclipsePlugin;
-
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.preference.PreferencePage;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.ui.IWorkbench;
-import org.eclipse.ui.IWorkbenchPreferencePage;
-import org.eclipse.ui.help.WorkbenchHelp;
-
-/*
- * The page to configure the compiler options.
- */
-public class CompilerPreferencePage extends PreferencePage implements IWorkbenchPreferencePage, IStatusChangeListener {
-
-       private CompilerConfigurationBlock fConfigurationBlock;
-
-       public CompilerPreferencePage() {
-               setPreferenceStore(PHPeclipsePlugin.getDefault().getPreferenceStore());
-               setDescription(PreferencesMessages.getString("CompilerPreferencePage.description")); //$NON-NLS-1$
-               
-               // only used when page is shown programatically
-               setTitle(PreferencesMessages.getString("CompilerPreferencePage.title"));                 //$NON-NLS-1$
-               
-               fConfigurationBlock= new CompilerConfigurationBlock(this, null);
-       }
-               
-       /*
-        * @see IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
-        */     
-       public void init(IWorkbench workbench) {
-       }
-
-       /*
-        * @see PreferencePage#createControl(Composite)
-        */
-       public void createControl(Composite parent) {
-               super.createControl(parent);
-               WorkbenchHelp.setHelp(getControl(), IJavaHelpContextIds.COMPILER_PREFERENCE_PAGE);
-       }       
-
-       /*
-        * @see PreferencePage#createContents(Composite)
-        */
-       protected Control createContents(Composite parent) {
-               Control result= fConfigurationBlock.createContents(parent);
-               Dialog.applyDialogFont(result);
-               return result;
-       }
-
-       /*
-        * @see IPreferencePage#performOk()
-        */
-       public boolean performOk() {
-               if (!fConfigurationBlock.performOk(true)) {
-                       return false;
-               }       
-               return super.performOk();
-       }
-       
-       /*
-        * @see PreferencePage#performDefaults()
-        */
-       protected void performDefaults() {
-               fConfigurationBlock.performDefaults();
-               super.performDefaults();
-       }
-       
-       /* (non-Javadoc)
-        * @see net.sourceforge.phpdt.internal.ui.wizards.IStatusChangeListener#statusChanged(org.eclipse.core.runtime.IStatus)
-        */
-       public void statusChanged(IStatus status) {
-               setValid(!status.matches(IStatus.ERROR));
-               StatusUtil.applyToStatusLine(this, status);             
-       }
-
-}