summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Davis2012-07-02 09:17:19 (EDT)
committer Steffen Pingel2012-07-02 09:17:19 (EDT)
commitccf72b00c47b7008797d24489c076c3a258678b3 (patch)
tree54fde2bb0a482e7078eb04cfe155f642cb3acca5
parent5bb44f52c1f154e9dcc93baf5cbe986dc1835ade (diff)
downloadorg.eclipse.mylyn.reviews-ccf72b00c47b7008797d24489c076c3a258678b3.zip
org.eclipse.mylyn.reviews-ccf72b00c47b7008797d24489c076c3a258678b3.tar.gz
org.eclipse.mylyn.reviews-ccf72b00c47b7008797d24489c076c3a258678b3.tar.bz2
383592: support scrolling using mouse wheel when patch set has focus
https://bugs.eclipse.org/bugs/show_bug.cgi?id=383592 Change-Id: I944c43b800aec64216412735b61fe9f22c476d39
-rw-r--r--org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/editor/PatchSetSection.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/editor/PatchSetSection.java b/org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/editor/PatchSetSection.java
index d759c4d..baa2d60 100644
--- a/org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/editor/PatchSetSection.java
+++ b/org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/editor/PatchSetSection.java
@@ -8,6 +8,7 @@
* Contributors:
* Tasktop Technologies - initial API and implementation
* Sascha Scholz (SAP) - improvements
+ * Sam Davis - improvements for bug 383592
*******************************************************************************/
package org.eclipse.mylyn.internal.gerrit.ui.editor;
@@ -61,6 +62,7 @@ import org.eclipse.mylyn.internal.gerrit.ui.operations.PublishDialog;
import org.eclipse.mylyn.internal.gerrit.ui.operations.RestoreDialog;
import org.eclipse.mylyn.internal.gerrit.ui.operations.SubmitDialog;
import org.eclipse.mylyn.internal.reviews.ui.compare.FileItemCompareEditorInput;
+import org.eclipse.mylyn.internal.tasks.ui.editors.EditorUtil;
import org.eclipse.mylyn.reviews.core.model.IFileItem;
import org.eclipse.mylyn.reviews.core.model.IReviewItem;
import org.eclipse.mylyn.reviews.core.model.IReviewItemSet;
@@ -534,7 +536,7 @@ public class PatchSetSection extends AbstractGerritSection {
private EContentAdapter modelAdapter;
public void dispose() {
- // ignore
+ // ignore
}
public Object[] getElements(Object inputElement) {
@@ -591,6 +593,7 @@ public class PatchSetSection extends AbstractGerritSection {
GridDataFactory.fillDefaults().span(2, 1).applyTo(actionComposite);
subSectionExpanded(changeDetail, patchSetDetail, subSection, viewer);
+ EditorUtil.addScrollListener(viewer.getTable());
getTaskEditorPage().reflow();
}