diff options
author | Michael Valenta | 2002-04-23 20:15:57 +0000 |
---|---|---|
committer | Michael Valenta | 2002-04-23 20:15:57 +0000 |
commit | b146c592eee6d868ed61a8866b479cb7586a5f26 (patch) | |
tree | 224387b3de2a31d0825d2b2ed765108c60fd1dba /bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/RemoteFile.java | |
parent | f6d892e133f326d7f9772b75606472aeeb3dbf8e (diff) | |
download | eclipse.platform.team-b146c592eee6d868ed61a8866b479cb7586a5f26.tar.gz eclipse.platform.team-b146c592eee6d868ed61a8866b479cb7586a5f26.tar.xz eclipse.platform.team-b146c592eee6d868ed61a8866b479cb7586a5f26.zip |
Added task title
Diffstat (limited to 'bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/RemoteFile.java')
-rw-r--r-- | bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/RemoteFile.java | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/RemoteFile.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/RemoteFile.java index fe3286756..dcda548ba 100644 --- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/RemoteFile.java +++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/RemoteFile.java @@ -1,10 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2002 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Common Public License v0.5 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/cpl-v05.html + * + * Contributors: + * IBM - Initial API and implementation + ******************************************************************************/ package org.eclipse.team.internal.ccvs.core.resources; -/* - * (c) Copyright IBM Corp. 2000, 2002. - * All Rights Reserved. - */ - import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.ByteArrayInputStream; @@ -193,6 +198,7 @@ public class RemoteFile extends RemoteResource implements ICVSRemoteFile { throw new CVSException(new CVSStatus(IStatus.ERROR, 0, Policy.bind("RemoteFile.errorRetrievingFromCache", e.getMessage()), e));//$NON-NLS-1$ } + monitor.beginTask(Policy.bind("RemoteFile.getContents"), 100);//$NON-NLS-1$ Session.run(getRepository(), parent, false, new ICVSRunnable() { public void run(IProgressMonitor monitor) throws CVSException { monitor.beginTask(null, 100); @@ -217,7 +223,7 @@ public class RemoteFile extends RemoteResource implements ICVSRemoteFile { throw new CVSServerException(status); } } - }, monitor); + }, Policy.subMonitorFor(monitor, 100)); // If the update succeeded but no contents were retreived from the server // than we can assume that the remote file has no contents. |