Fixed: 1760857 - Avoid refreshing the preview when phpeditor got focus.
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / CompilationUnitEditorActionContributor.java
index 57ed72d..b77af3e 100644 (file)
@@ -65,10 +65,12 @@ public class CompilationUnitEditorActionContributor extends
                                        .getInstance();
                        fShowExternalPreviewAction.setEditor(textEditor);
                        fShowExternalPreviewAction.update();
-                       if (fShowExternalPreviewAction != null) {
-                               fShowExternalPreviewAction
-                                               .doRun(ShowExternalPreviewAction.PHP_TYPE);
-                       }
+                       // if (fShowExternalPreviewAction != null) {
+                       // fShowExternalPreviewAction
+                       // .doRun(ShowExternalPreviewAction.PHP_TYPE);
+                       // }
+                       fShowExternalPreviewAction
+                                       .refresh(ShowExternalPreviewAction.PHP_TYPE);
                }
        }
 }
\ No newline at end of file