X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/CompilationUnitEditorActionContributor.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/CompilationUnitEditorActionContributor.java index f5af618..524e966 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/CompilationUnitEditorActionContributor.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/CompilationUnitEditorActionContributor.java @@ -53,12 +53,13 @@ public class CompilationUnitEditorActionContributor extends BasicEditorActionCon } PHPeclipsePlugin.getDefault().setLastEditorFile(file); - + ShowExternalPreviewAction fShowExternalPreviewAction = ShowExternalPreviewAction.getInstance(); fShowExternalPreviewAction.setEditor(textEditor); fShowExternalPreviewAction.update(); - if (fShowExternalPreviewAction != null) + if (fShowExternalPreviewAction != null) { fShowExternalPreviewAction.doRun(ShowExternalPreviewAction.PHP_TYPE); + } } } } \ No newline at end of file