Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2004-10-01 17:54:29 +0000
committerMichael Valenta2004-10-01 17:54:29 +0000
commitb0da46c43dbaec14f440aa146220ecfaf7c5f470 (patch)
tree38039cfb6452565ba4123c20d123ffc2271916a5
parent6473924de890ba6c3cd6cb1521cb5fde994cca6e (diff)
downloadeclipse.platform.team-b0da46c43dbaec14f440aa146220ecfaf7c5f470.tar.gz
eclipse.platform.team-b0da46c43dbaec14f440aa146220ecfaf7c5f470.tar.xz
eclipse.platform.team-b0da46c43dbaec14f440aa146220ecfaf7c5f470.zip
*** empty log message ***
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/ChangeSetModelProvider.java18
1 files changed, 17 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/ChangeSetModelProvider.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/ChangeSetModelProvider.java
index 5e8fbcbe5..d18ef7194 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/ChangeSetModelProvider.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/ChangeSetModelProvider.java
@@ -190,7 +190,23 @@ public class ChangeSetModelProvider extends CompositeModelProvider {
// Forward the event to the root provider
ISynchronizeModelProvider provider = getProviderRootedAt(getModelRoot());
if (provider != null) {
- ((SynchronizeModelProvider)provider).syncInfoChanged(event, monitor);
+ SyncInfoSet set = provider.getSyncInfoSet();
+ try {
+ set.beginInput();
+ set.removeAll(event.getRemovedResources());
+ SyncInfo[] added = event.getAddedResources();
+ for (int i = 0; i < added.length; i++) {
+ SyncInfo info = added[i];
+ set.add(info);
+ }
+ SyncInfo[] changed = event.getChangedResources();
+ for (int i = 0; i < changed.length; i++) {
+ SyncInfo info = changed[i];
+ set.add(info);
+ }
+ } finally {
+ set.endInput(monitor);
+ }
}
}
}

Back to the top