added h4 (====) gheader template
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / actions / PHPStartMySQLAction.java
index f6e64d3..cc237ea 100644 (file)
@@ -7,25 +7,23 @@ http://www.eclipse.org/legal/cpl-v10.html
 
 Contributors:
     IBM Corporation - Initial implementation
-    Klaus Hartlage - www.eclipseproject.de
+    www.phpeclipse.de
 **********************************************************************/
 package net.sourceforge.phpeclipse.actions;
 
-import java.io.IOException;
-import java.text.MessageFormat;
-
 import net.sourceforge.phpeclipse.PHPeclipsePlugin;
+
 import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.dialogs.MessageDialog;
 import org.eclipse.jface.preference.IPreferenceStore;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.IWorkbenchWindowActionDelegate;
 
 public class PHPStartMySQLAction extends PHPStartApacheAction {
-       public void run(IAction action) {
-               final IPreferenceStore store = PHPeclipsePlugin.getDefault().getPreferenceStore();
-               execute(store.getString(PHPeclipsePlugin.MYSQL_PREF), "Start MySQL: ");
-       }
+  public void run(IAction action) {
+    final IPreferenceStore store = PHPeclipsePlugin.getDefault().getPreferenceStore();
+    // execute(store.getString(PHPeclipsePlugin.MYSQL_PREF), "Start MySQL: ");
+    execute(
+      "mysql_start",
+      store.getString(PHPeclipsePlugin.MYSQL_RUN_PREF),
+      store.getString(PHPeclipsePlugin.MYSQL_PREF),
+      store.getBoolean(PHPeclipsePlugin.MYSQL_START_BACKGROUND));
+  }
 }