Contributors:
IBM Corporation - Initial implementation
- Klaus Hartlage - www.eclipseproject.de
+ www.phpeclipse.de
**********************************************************************/
package net.sourceforge.phpeclipse.actions;
import java.text.MessageFormat;
import net.sourceforge.phpdt.externaltools.launchConfigurations.ExternalToolsUtil;
+import net.sourceforge.phpeclipse.PHPConsole;
import net.sourceforge.phpeclipse.PHPeclipsePlugin;
-import net.sourceforge.phpeclipse.views.PHPConsole;
+import net.sourceforge.phpeclipse.ui.WebUI;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.preference.IPreferenceStore;
public void run(IAction action) {
final IPreferenceStore store =
PHPeclipsePlugin.getDefault().getPreferenceStore();
- String documentRoot = store.getString(PHPeclipsePlugin.PHP_DOCUMENTROOT_PREF);
+ String documentRoot = store.getString(WebUI.PHP_DOCUMENTROOT_PREF);
// replace backslash with slash in the DocumentRoot under Windows
documentRoot = documentRoot.replace('\\', '/');
String[] arguments = { documentRoot };
String executable,
String arguments,
boolean background) {
- PHPConsole console = PHPConsole.getInstance();
+ PHPConsole console = new PHPConsole();
String consoleMessage;
if (background) {
consoleMessage =
+ " "
+ arguments;
}
- console.write(consoleMessage + "\n");
+ console.println(consoleMessage);
ExternalToolsUtil.execute(command, executable, arguments, background);
}