Fixed problem opening other sources
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / actions / PHPStartMySQLAction.java
1 /**********************************************************************
2 Copyright (c) 2000, 2002 IBM Corp. and others.
3 All rights reserved. This program and the accompanying materials
4 are made available under the terms of the Common Public License v1.0
5 which accompanies this distribution, and is available at
6 http://www.eclipse.org/legal/cpl-v10.html
7
8 Contributors:
9     IBM Corporation - Initial implementation
10     Klaus Hartlage - www.eclipseproject.de
11 **********************************************************************/
12 package net.sourceforge.phpeclipse.actions;
13
14 import net.sourceforge.phpeclipse.PHPeclipsePlugin;
15
16 import org.eclipse.jface.action.IAction;
17 import org.eclipse.jface.preference.IPreferenceStore;
18
19 public class PHPStartMySQLAction extends PHPStartApacheAction {
20   public void run(IAction action) {
21     final IPreferenceStore store = PHPeclipsePlugin.getDefault().getPreferenceStore();
22     //  execute(store.getString(PHPeclipsePlugin.MYSQL_PREF), "Start MySQL: ");
23     execute(
24       "mysql_start",
25       store.getString(PHPeclipsePlugin.MYSQL_RUN_PREF),
26       store.getString(PHPeclipsePlugin.MYSQL_PREF),
27       store.getBoolean(PHPeclipsePlugin.MYSQL_START_BACKGROUND));
28   }
29 }