summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLily Guo2013-05-30 18:28:23 (EDT)
committer Gerrit Code Review @ Eclipse.org2013-06-13 19:07:39 (EDT)
commit7f56d84644375af537af619a32e73cda690cafc1 (patch)
tree95d4db5decfedf3aba63cdf601345d4e586e08bb
parent02d1b3dad1cd6ab10b7ccc360e8cf7e921a93d00 (diff)
downloadorg.eclipse.mylyn.reviews-7f56d84644375af537af619a32e73cda690cafc1.zip
org.eclipse.mylyn.reviews-7f56d84644375af537af619a32e73cda690cafc1.tar.gz
org.eclipse.mylyn.reviews-7f56d84644375af537af619a32e73cda690cafc1.tar.bz2
400278: [editor] make patch set commit link more obviousrefs/changes/21/13421/3
Change-Id: Iabf589dd128f0b6847d19fb001a7b37a835a8e83 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=400278
-rw-r--r--org.eclipse.mylyn.reviews.ui/src/org/eclipse/mylyn/reviews/ui/spi/editor/ReviewSetContentSection.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.reviews.ui/src/org/eclipse/mylyn/reviews/ui/spi/editor/ReviewSetContentSection.java b/org.eclipse.mylyn.reviews.ui/src/org/eclipse/mylyn/reviews/ui/spi/editor/ReviewSetContentSection.java
index 9def6f2..1d7b6ec 100644
--- a/org.eclipse.mylyn.reviews.ui/src/org/eclipse/mylyn/reviews/ui/spi/editor/ReviewSetContentSection.java
+++ b/org.eclipse.mylyn.reviews.ui/src/org/eclipse/mylyn/reviews/ui/spi/editor/ReviewSetContentSection.java
@@ -31,6 +31,8 @@ import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.window.ToolTip;
import org.eclipse.mylyn.commons.core.StatusHandler;
+import org.eclipse.mylyn.commons.ui.compatibility.CommonColors;
+import org.eclipse.mylyn.commons.workbench.forms.ScalingHyperlink;
import org.eclipse.mylyn.internal.reviews.ui.providers.ReviewsLabelProvider;
import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
import org.eclipse.mylyn.internal.tasks.ui.editors.EditorUtil;
@@ -54,7 +56,6 @@ import org.eclipse.ui.forms.events.ExpansionEvent;
import org.eclipse.ui.forms.events.HyperlinkAdapter;
import org.eclipse.ui.forms.events.HyperlinkEvent;
import org.eclipse.ui.forms.widgets.ExpandableComposite;
-import org.eclipse.ui.forms.widgets.Hyperlink;
import org.eclipse.ui.forms.widgets.Section;
/**
@@ -216,8 +217,10 @@ public class ReviewSetContentSection {
commitLabel.setForeground(colors.getColor(IFormColors.TITLE));
commitLabel.setText("Commit");
- Hyperlink commitLink = new Hyperlink(composite, SWT.READ_ONLY);
+ ScalingHyperlink commitLink = new ScalingHyperlink(composite, SWT.READ_ONLY);
commitLink.setText(set.getRevision());
+ commitLink.setForeground(CommonColors.HYPERLINK_WIDGET);
+ commitLink.registerMouseTrackListener();
commitLink.addHyperlinkListener(new HyperlinkAdapter() {
@Override
public void linkActivated(HyperlinkEvent event) {