Simple auto indent strategy when inserting templates
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / actions / PHPStartMySQLAction.java
index b7810d7..755f607 100644 (file)
@@ -17,8 +17,13 @@ import org.eclipse.jface.action.IAction;
 import org.eclipse.jface.preference.IPreferenceStore;
 
 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));
+  }
 }