Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2003-08-18 20:43:32 +0000
committerJean Michel-Lemieux2003-08-18 20:43:32 +0000
commitcbe98b8b3c6e3948a253d5e0dbd2cfdb4c3d96a4 (patch)
tree18a0b0921ca473f62617956827a1fff89c24d0f5 /bundles/org.eclipse.team.ui/src
parent264a563f83a914ba247becce4b8f6da7033219f1 (diff)
downloadeclipse.platform.team-cbe98b8b3c6e3948a253d5e0dbd2cfdb4c3d96a4.tar.gz
eclipse.platform.team-cbe98b8b3c6e3948a253d5e0dbd2cfdb4c3d96a4.tar.xz
eclipse.platform.team-cbe98b8b3c6e3948a253d5e0dbd2cfdb4c3d96a4.zip
Subclasses WorkspaceJob to benefit from resource change batching.I20030819
Diffstat (limited to 'bundles/org.eclipse.team.ui/src')
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/jobs/RefreshSubscriberJob.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/jobs/RefreshSubscriberJob.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/jobs/RefreshSubscriberJob.java
index 3bd8ae8a4..f6c57c3aa 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/jobs/RefreshSubscriberJob.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/jobs/RefreshSubscriberJob.java
@@ -11,6 +11,7 @@
package org.eclipse.team.internal.ui.jobs;
import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.WorkspaceJob;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.MultiStatus;
@@ -30,7 +31,7 @@ import org.eclipse.team.internal.core.TeamPlugin;
*
* There can be several refresh jobs created but they will be serialized.
*/
-public class RefreshSubscriberJob extends Job {
+public class RefreshSubscriberJob extends WorkspaceJob {
/**
* Uniquely identifies this type of job. This is used for cancellation.
@@ -118,7 +119,7 @@ public class RefreshSubscriberJob extends Job {
* This is run by the job scheduler. A list of subscribers will be refreshed, errors will not stop the job
* and it will continue to refresh the other subscribers.
*/
- public IStatus run(IProgressMonitor monitor) {
+ public IStatus runInWorkspace(IProgressMonitor monitor) {
MultiStatus status = new MultiStatus(TeamPlugin.ID, TeamException.UNABLE, Policy.bind("Team.errorRefreshingSubscribers"), null); //$NON-NLS-1$
TeamSubscriber subscriber = getSubscriber();
IResource[] roots = getResources();

Back to the top