X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPEclipsePreferencePage.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPEclipsePreferencePage.java index 05b2d4e..3d6fe05 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPEclipsePreferencePage.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPEclipsePreferencePage.java @@ -56,34 +56,34 @@ public class PHPEclipsePreferencePage extends FieldEditorPreferencePage implemen StringFieldEditor startMySQL = new StringFieldEditor(PHPeclipsePlugin.MYSQL_PREF, "&MySQL command:", 60, getFieldEditorParent()); - Button button = new Button(shell, SWT.PUSH); - button.setText("Start MySQL"); - button.addSelectionListener(new SelectionAdapter() { - public void widgetSelected(SelectionEvent e) { - try { - Runtime runtime = Runtime.getRuntime(); - runtime.exec(store.getString(PHPeclipsePlugin.MYSQL_PREF)); - } catch (IOException e1) { - } - } - }); +// Button button = new Button(shell, SWT.PUSH); +// button.setText("Start MySQL"); +// button.addSelectionListener(new SelectionAdapter() { +// public void widgetSelected(SelectionEvent e) { +// try { +// Runtime runtime = Runtime.getRuntime(); +// runtime.exec(store.getString(PHPeclipsePlugin.MYSQL_PREF)); +// } catch (IOException e1) { +// } +// } +// }); StringFieldEditor startApache = new StringFieldEditor(PHPeclipsePlugin.APACHE_START_PREF, "Start &Apache command:", 60, getFieldEditorParent()); - Button startButton = new Button(shell, SWT.PUSH); - startButton.setText("Start Apache"); - startButton.addSelectionListener(new SelectionAdapter() { - public void widgetSelected(SelectionEvent e) { - String[] arguments = { store.getString(PHPeclipsePlugin.DOCUMENTROOT_PREF)}; - MessageFormat form = new MessageFormat(store.getString(PHPeclipsePlugin.APACHE_START_PREF)); - - try { - Runtime runtime = Runtime.getRuntime(); - runtime.exec(form.format(arguments)); - } catch (IOException e2) { - } - } - }); +// Button startButton = new Button(shell, SWT.PUSH); +// startButton.setText("Start Apache"); +// startButton.addSelectionListener(new SelectionAdapter() { +// public void widgetSelected(SelectionEvent e) { +// String[] arguments = { store.getString(PHPeclipsePlugin.DOCUMENTROOT_PREF)}; +// MessageFormat form = new MessageFormat(store.getString(PHPeclipsePlugin.APACHE_START_PREF)); +// +// try { +// Runtime runtime = Runtime.getRuntime(); +// runtime.exec(form.format(arguments)); +// } catch (IOException e2) { +// } +// } +// }); StringFieldEditor stopApache = new StringFieldEditor(PHPeclipsePlugin.APACHE_STOP_PREF, "&Stop Apache command:", 60, getFieldEditorParent());