diff options
author | Michael Valenta | 2006-02-04 04:28:43 +0000 |
---|---|---|
committer | Michael Valenta | 2006-02-04 04:28:43 +0000 |
commit | ccde8a118e8ff00cd9380e0e7783761203f86c06 (patch) | |
tree | 23853747c0462a912c3c86baf803ddb3744b95ca /bundles/org.eclipse.team.core/src/org/eclipse/team/core/subscribers | |
parent | a06e3649a35bad63af46023a227a82ebd43faa79 (diff) | |
download | eclipse.platform.team-ccde8a118e8ff00cd9380e0e7783761203f86c06.tar.gz eclipse.platform.team-ccde8a118e8ff00cd9380e0e7783761203f86c06.tar.xz eclipse.platform.team-ccde8a118e8ff00cd9380e0e7783761203f86c06.zip |
Added sync wizard for CVS model participant
Diffstat (limited to 'bundles/org.eclipse.team.core/src/org/eclipse/team/core/subscribers')
-rw-r--r-- | bundles/org.eclipse.team.core/src/org/eclipse/team/core/subscribers/SubscriberScopeManager.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/subscribers/SubscriberScopeManager.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/subscribers/SubscriberScopeManager.java index 3aa46e75d..62f3f91b1 100644 --- a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/subscribers/SubscriberScopeManager.java +++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/subscribers/SubscriberScopeManager.java @@ -157,18 +157,26 @@ public class SubscriberScopeManager extends ResourceMappingScopeManager implemen } private void fireChange(final IResource[] resources, final IProject[] projects) { + final Set result = new HashSet(); IResourceMappingScopeParticipant[] handlers = (IResourceMappingScopeParticipant[]) participants.values().toArray(new IResourceMappingScopeParticipant[participants.size()]); for (int i = 0; i < handlers.length; i++) { final IResourceMappingScopeParticipant participant = handlers[i]; Platform.run(new ISafeRunnable() { public void run() throws Exception { - participant.handleContextChange(SubscriberScopeManager.this, resources, projects); + ResourceMapping[] mappings = participant.handleContextChange(SubscriberScopeManager.this, resources, projects); + for (int j = 0; j < mappings.length; j++) { + ResourceMapping mapping = mappings[j]; + result.add(mapping); + } } public void handleException(Throwable exception) { // Handled by platform } }); } + if (!result.isEmpty()) { + refresh((ResourceMapping[]) result.toArray(new ResourceMapping[result.size()])); + } } } |