summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Lohre2011-05-06 07:16:22 (EDT)
committerJan Lohre2011-05-06 07:16:22 (EDT)
commit8250596ab9f40cf50a31a91479e47fd1c3f0af15 (patch)
tree9f4d99b4cdca0b9df9a05f50885e307a72b1a69f
parent8ce2a387cc806256e06839fc0274f303802a95e6 (diff)
downloadorg.eclipse.mylyn.reviews-8250596ab9f40cf50a31a91479e47fd1c3f0af15.zip
org.eclipse.mylyn.reviews-8250596ab9f40cf50a31a91479e47fd1c3f0af15.tar.gz
org.eclipse.mylyn.reviews-8250596ab9f40cf50a31a91479e47fd1c3f0af15.tar.bz2
bug 344950: DependsOn / NeededBy Sections should show the status of
the other change Signed-off-by: Jan Lohre <jan.lohre@sap.com>
-rw-r--r--gerrit/org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/editor/ReviewSection.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/gerrit/org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/editor/ReviewSection.java b/gerrit/org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/editor/ReviewSection.java
index 48c8346..a3b34fe 100644
--- a/gerrit/org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/editor/ReviewSection.java
+++ b/gerrit/org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/editor/ReviewSection.java
@@ -253,8 +253,10 @@ public class ReviewSection extends AbstractGerritSection {
for (final ChangeInfo changeInfo : changeInfos) {
AccountInfo user = changeDetail.getAccounts().get(changeInfo.getOwner());
Link link = new Link(composite, SWT.NONE);
- link.setText(NLS.bind("<a>{0}</a>: {1} by {2}", new String[] { Integer.toString(changeInfo.getId().get()),
- changeInfo.getSubject(), GerritUtil.getUserLabel(user) }));
+ link.setText(NLS.bind(
+ "<a>{0}</a>: {1} ({3}) by {2}",
+ new String[] { Integer.toString(changeInfo.getId().get()), changeInfo.getSubject(),
+ GerritUtil.getUserLabel(user), String.valueOf(changeInfo.getStatus()) }));
link.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {