Fixed smarty error for { at first position in a *.tpl file
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / ShowExternalPreviewAction.java
index 7ab6f16..a3669ed 100644 (file)
@@ -24,8 +24,8 @@ import org.eclipse.ui.IWorkbenchPage;
 import org.eclipse.ui.PartInitException;
 import org.eclipse.ui.texteditor.ITextEditor;
 import org.eclipse.ui.texteditor.TextEditorAction;
-import org.eclipse.update.internal.ui.UpdatePerspective;
-import org.eclipse.update.internal.ui.views.IEmbeddedWebBrowser;
+//import org.eclipse.update.internal.ui.UpdatePerspective;
+//import org.eclipse.update.internal.ui.views.IEmbeddedWebBrowser;
 
 /**
  * ClassDeclaration that defines the action for parsing the current PHP file
@@ -58,23 +58,23 @@ public class ShowExternalPreviewAction extends TextEditorAction {
       return;
     }
 
-    if (SWT.getPlatform().equals("win32")) {
-      String localhostURL;
-      if ((localhostURL = PHPEclipseShowAction.getLocalhostURL(null, fileToParse)) == null) {
-        return;
-      }
-      IWorkbenchPage page = PHPeclipsePlugin.getActivePage();
-      try {
-        IViewPart part = page.findView(UpdatePerspective.ID_BROWSER);
-        if (part == null) {
-          part = page.showView(UpdatePerspective.ID_BROWSER);
-        } else
-          page.bringToTop(part);
-        ((IEmbeddedWebBrowser) part).openTo(localhostURL);
-      } catch (PartInitException e) {
-        PHPeclipsePlugin.log(e);
-      }
-    }
+//    if (SWT.getPlatform().equals("win32")) {
+//      String localhostURL;
+//      if ((localhostURL = PHPEclipseShowAction.getLocalhostURL(null, fileToParse)) == null) {
+//        return;
+//      }
+//      IWorkbenchPage page = PHPeclipsePlugin.getActivePage();
+//      try {
+//        IViewPart part = page.findView(UpdatePerspective.ID_BROWSER);
+//        if (part == null) {
+//          part = page.showView(UpdatePerspective.ID_BROWSER);
+//        } else
+//          page.bringToTop(part);
+//        ((IEmbeddedWebBrowser) part).openTo(localhostURL);
+//      } catch (PartInitException e) {
+//        PHPeclipsePlugin.log(e);
+//      }
+//    }
 
   }