Fixed: 1760857 - Avoid refreshing the preview when phpeditor got focus.
authortoshihiro <toshihiro>
Mon, 30 Jul 2007 07:18:40 +0000 (07:18 +0000)
committertoshihiro <toshihiro>
Mon, 30 Jul 2007 07:18:40 +0000 (07:18 +0000)
If Browser View is already showing the URL, do nothing.

net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/PHPUnitEditor.java

index 15c174f..f726d5d 100644 (file)
@@ -2758,7 +2758,8 @@ public class PHPUnitEditor extends PHPEditor { // implements
                super.editorSaved();
                ShowExternalPreviewAction a = ShowExternalPreviewAction.getInstance();
                if (a != null) {
-                       a.refresh(ShowExternalPreviewAction.PHP_TYPE);
+                       //a.refresh(ShowExternalPreviewAction.PHP_TYPE);
+                       a.doRun(ShowExternalPreviewAction.PHP_TYPE);
                }
        }
 }
\ No newline at end of file