Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2005-05-26 20:16:40 +0000
committerMichael Valenta2005-05-26 20:16:40 +0000
commit63ffa75da3d23245823c9803098b185aadfb6374 (patch)
tree3ee7d7abe361dada5230a392f61be5e022effe8f
parent810bb1f0ceef8aed206651255194c3649ec02f24 (diff)
downloadeclipse.platform.team-63ffa75da3d23245823c9803098b185aadfb6374.tar.gz
eclipse.platform.team-63ffa75da3d23245823c9803098b185aadfb6374.tar.xz
eclipse.platform.team-63ffa75da3d23245823c9803098b185aadfb6374.zip
Bug 96866 Sorting Flat layout fails with change sets enabledI20050526
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/StructuredViewerAdvisor.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/StructuredViewerAdvisor.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/StructuredViewerAdvisor.java
index 2ddea7acc..e7c6af936 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/StructuredViewerAdvisor.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/StructuredViewerAdvisor.java
@@ -344,7 +344,13 @@ public abstract class StructuredViewerAdvisor implements IAdaptable {
viewer.getControl().getDisplay().syncExec(new Runnable() {
public void run() {
if (viewer != null && !viewer.getControl().isDisposed()) {
- viewer.setSorter(modelProvider.getViewerSorter());
+ ViewerSorter newSorter = modelProvider.getViewerSorter();
+ ViewerSorter oldSorter = viewer.getSorter();
+ if (newSorter == oldSorter) {
+ viewer.refresh();
+ } else {
+ viewer.setSorter(newSorter);
+ }
}
}
});

Back to the top