summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Keppler2014-04-12 16:07:26 (EDT)
committerJacques Bouthillier2014-04-21 13:07:01 (EDT)
commit3eef39d591297beda439cf61c059513d927e41ae (patch)
treeec3828ab5242effd72d84a2ca501bfa9bdd1603a
parenta9821493c14620712f397092edbc33f49428a927 (diff)
downloadorg.eclipse.mylyn.reviews-3eef39d591297beda439cf61c059513d927e41ae.zip
org.eclipse.mylyn.reviews-3eef39d591297beda439cf61c059513d927e41ae.tar.gz
org.eclipse.mylyn.reviews-3eef39d591297beda439cf61c059513d927e41ae.tar.bz2
sort gerrit dashboard by most recent changes by defaultrefs/changes/05/24905/2
Up to now the gerrit dashboard had no default sort order for reviews. Only clicking a column would lead to some sorting. This change sorts changes by most recent changes first, like in the web UI. Change-Id: I2a39547c2a8fec88f054209172c9393eb16f9d6b Signed-off-by: Michael Keppler <michael.keppler@gmx.de>
-rw-r--r--org.eclipse.mylyn.gerrit.dashboard.ui/src/org/eclipse/mylyn/gerrit/dashboard/ui/internal/model/UIReviewTable.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.gerrit.dashboard.ui/src/org/eclipse/mylyn/gerrit/dashboard/ui/internal/model/UIReviewTable.java b/org.eclipse.mylyn.gerrit.dashboard.ui/src/org/eclipse/mylyn/gerrit/dashboard/ui/internal/model/UIReviewTable.java
index 57d47a8..15cff44 100644
--- a/org.eclipse.mylyn.gerrit.dashboard.ui/src/org/eclipse/mylyn/gerrit/dashboard/ui/internal/model/UIReviewTable.java
+++ b/org.eclipse.mylyn.gerrit.dashboard.ui/src/org/eclipse/mylyn/gerrit/dashboard/ui/internal/model/UIReviewTable.java
@@ -95,6 +95,7 @@ public class UIReviewTable {
ReviewTableLabelProvider tableProvider = new ReviewTableLabelProvider();
fViewer.setLabelProvider(tableProvider);
ReviewTableSorter.bind(fViewer);
+ fViewer.setComparator(new ReviewTableSorter(6)); // sort by Updated, descending
// Create the help context id for the viewer's control
// PlatformUI