public void run(IProgressMonitor monitor) throws CoreException { ISVNRemoteFile remoteFile = (ISVNRemoteFile)currentSelection.getRemoteResource(); monitor.beginTask(null, 100); try { if(confirmOverwrite()) { InputStream in = ((IResourceVariant)remoteFile).getStorage(new SubProgressMonitor(monitor,50)).getContents(); file.setContents(in, false, true, new SubProgressMonitor(monitor, 50)); } } catch (TeamException e) { throw new CoreException(e.getStatus()); } finally { monitor.done(); }
public void run() { refresh();
			public void run(IProgressMonitor monitor) throws CoreException {				ISVNRemoteFile remoteFile = (ISVNRemoteFile)currentSelection.getRemoteResource();				monitor.beginTask(null, 100);				try {					if(confirmOverwrite()) {						InputStream in = ((IResourceVariant)remoteFile).getStorage(new SubProgressMonitor(monitor,50)).getContents();						file.setContents(in, false, true, new SubProgressMonitor(monitor, 50));									}				} catch (TeamException e) {					throw new CoreException(e.getStatus());				} finally {					monitor.done();				}			}