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