fixed bug #1037094 (foreach)
[phpeclipse.git] / net.sourceforge.phpeclipse.webbrowser / src / net / sourceforge / phpeclipse / webbrowser / views / BrowserView.java
index 36cf147..60eddb6 100644 (file)
@@ -73,31 +73,33 @@ public class BrowserView extends ViewPart {
 
   public void setUrl(final String url) {
     if (instance != null) {
-      try {
-        ResourcesPlugin.getWorkspace().run(new IWorkspaceRunnable() {
-          public void run(IProgressMonitor monitor) throws CoreException {
-            instance.setURL(url);
-          }
-        }, null);
-      } catch (CoreException e) {
-        // TODO Auto-generated catch block
-        e.printStackTrace();
-      }
+      instance.setURL(url);
+//      try {
+//        ResourcesPlugin.getWorkspace().run(new IWorkspaceRunnable() {
+//          public void run(IProgressMonitor monitor) throws CoreException {
+//            instance.setURL(url);
+//          }
+//        }, null);
+//      } catch (CoreException e) {
+//        // TODO Auto-generated catch block
+//        e.printStackTrace();
+//      }
     }
   }
 
   public void refresh() {
     if (instance != null) {
-      try {
-        ResourcesPlugin.getWorkspace().run(new IWorkspaceRunnable() {
-          public void run(IProgressMonitor monitor) throws CoreException {
-            instance.refresh();
-          }
-        }, null);
-      } catch (CoreException e) {
-        // TODO Auto-generated catch block
-        e.printStackTrace();
-      }
+      instance.refresh();
+//      try {
+//        ResourcesPlugin.getWorkspace().run(new IWorkspaceRunnable() {
+//          public void run(IProgressMonitor monitor) throws CoreException {
+//            instance.refresh();
+//          }
+//        }, null);
+//      } catch (CoreException e) {
+//        // TODO Auto-generated catch block
+//        e.printStackTrace();
+//      }
     }
   }
 }
\ No newline at end of file