Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2004-05-04 21:41:39 -0400
committerJean Michel-Lemieux2004-05-04 21:41:39 -0400
commitfc674c6773f17e86ed890e74d14d0f0b6ad679c3 (patch)
tree4cd862164f9611051e5ce32fe32bf7977cada78a
parent306e824385f38f94bd179cda1101471b590c962b (diff)
downloadeclipse.platform.team-fc674c6773f17e86ed890e74d14d0f0b6ad679c3.tar.gz
eclipse.platform.team-fc674c6773f17e86ed890e74d14d0f0b6ad679c3.tar.xz
eclipse.platform.team-fc674c6773f17e86ed890e74d14d0f0b6ad679c3.zip
using new refresh api
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/SharingWizard.java13
1 files changed, 3 insertions, 10 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/SharingWizard.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/SharingWizard.java
index 69f96ee26..1c26ec461 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/SharingWizard.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/SharingWizard.java
@@ -496,11 +496,11 @@ public class SharingWizard extends Wizard implements IConfigurationWizard, ICVSW
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
monitor.beginTask(null, 100);
if (exists) {
- reconcileProject(Policy.subMonitorFor(monitor, 90));
+ reconcileProject(Policy.subMonitorFor(monitor, 50));
} else {
- shareProject(Policy.subMonitorFor(monitor, 90));
+ shareProject(Policy.subMonitorFor(monitor, 50));
}
- waitForCollector(Policy.subMonitorFor(monitor, 10));
+ CVSUIPlugin.getPlugin().getCvsWorkspaceSynchronizeParticipant().refreshNow(new IResource[] {project}, Policy.bind("ShareProjectOperation.1"), Policy.subMonitorFor(monitor, 50)); //$NON-NLS-1$
if (monitor.isCanceled()) {
throw new InterruptedException();
}
@@ -509,13 +509,6 @@ public class SharingWizard extends Wizard implements IConfigurationWizard, ICVSW
});
}
- private void waitForCollector(IProgressMonitor sub) {
- sub.beginTask(Policy.bind("ShareProjectOperation.1"), IProgressMonitor.UNKNOWN); //$NON-NLS-1$
- sub.subTask(Policy.bind("ShareProjectOperation.1")); //$NON-NLS-1$
- CVSUIPlugin.getPlugin().getCvsWorkspaceSynchronizeParticipant().getSubscriberSyncInfoCollector().waitForCollector(sub);
- sub.done();
- }
-
/* (non-Javadoc)
* @see org.eclipse.jface.wizard.IWizard#getPreviousPage(org.eclipse.jface.wizard.IWizardPage)
*/

Back to the top