deleted: export="true"
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / actions / PHPEclipseShowAction.java
index a7c633c..13efe64 100644 (file)
@@ -19,7 +19,6 @@ import java.util.Iterator;
 
 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;
@@ -68,6 +67,7 @@ public class PHPEclipseShowAction implements IObjectActionDelegate {
 
     StructuredSelection selection = null;
     selection = (StructuredSelection) selectionProvider.getSelection();
+    PHPConsole console = PHPConsole.getInstance();
 
     IPreferenceStore store = PHPeclipsePlugin.getDefault().getPreferenceStore();
 
@@ -113,7 +113,7 @@ public class PHPEclipseShowAction implements IObjectActionDelegate {
 
                 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);
@@ -121,7 +121,7 @@ public class PHPEclipseShowAction implements IObjectActionDelegate {
             //    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) {