import net.sourceforge.phpeclipse.PHPeclipsePlugin;
import net.sourceforge.phpeclipse.views.PHPConsole;
-
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IPath;
StructuredSelection selection = null;
selection = (StructuredSelection) selectionProvider.getSelection();
+ PHPConsole console = PHPConsole.getInstance();
IPreferenceStore store = PHPeclipsePlugin.getDefault().getPreferenceStore();
Runtime runtime = Runtime.getRuntime();
String command = form.format(arguments);
- PHPConsole.write("External Browser command: "+command+"\n");
+ console.write("External Browser command: "+command+"\n");
runtime.exec(command);
// runtime.exec(store.getString(PHPeclipsePlugin.EXTERNAL_BROWSER_PREF) + " " + fileName);
// runtime.exec("command.com /c start iexplore " + fileName);
// MessageDialog.openInformation(shell, "localhostURL", "localhostURL: " + localhostURL);
// this doesn't work under win98 ?
// Program.launch(localhostURL);
- PHPConsole.write("Internal Browser URL: "+localhostURL+"\n");
+ console.write("Internal Browser URL: "+localhostURL+"\n");
open(new URL(localhostURL), shell, localhostURL);
}
} catch (MalformedURLException e) {