try { if(resource == null) return; PlatformUI.getWorkbench().getProgressService().run(true, true, new IRunnableWithProgress() { public void run(IProgressMonitor monitor) throws InvocationTargetException { try { action.run(monitor); } catch(CoreException e) { throw new InvocationTargetException(e); } } }); } catch(InvocationTargetException e) { SVNUIPlugin.openError(getSite().getShell(), null, null, e, SVNUIPlugin.LOG_NONTEAM_EXCEPTIONS); } catch(InterruptedException e) {  } }
BusyIndicator.showWhile(tableHistoryViewer.getTable().getDisplay(), new Runnable() { public void run() { ViewerFilter[] filters = tableHistoryViewer.getFilters(); for (int i=0; i<filters.length; i++) { ViewerFilter filter = filters[i]; if (filter instanceof HistorySearchViewerFilter) { tableHistoryViewer.removeFilter(filter); } else if (filter instanceof EmptySearchViewerFilter) { tableHistoryViewer.removeFilter(filter); } } setEnabled(false); } }); }
      public void run() {        try {          if(resource == null)            return;          PlatformUI.getWorkbench().getProgressService().run(true, true, new IRunnableWithProgress() {            public void run(IProgressMonitor monitor) throws InvocationTargetException {              try {                action.run(monitor);              } catch(CoreException e) {                throw new InvocationTargetException(e);              }            }          });        } catch(InvocationTargetException e) {          SVNUIPlugin.openError(getSite().getShell(), null, null, e, SVNUIPlugin.LOG_NONTEAM_EXCEPTIONS);        } catch(InterruptedException e) {          // Do nothing        }      }