diff options
| author | Robin Stocker | 2013-12-19 21:19:50 +0000 |
|---|---|---|
| committer | Gerrit Code Review @ Eclipse.org | 2013-12-20 23:21:15 +0000 |
| commit | 3c58e4ed5ec994307ffb20fb78ec2269e04ce392 (patch) | |
| tree | 5c32aa3326c009d1914693b1063b996336b26450 | |
| parent | b8913a73422e68984b1d0b6e4ec76a56a97e0194 (diff) | |
| download | egit-3c58e4ed5ec994307ffb20fb78ec2269e04ce392.tar.gz egit-3c58e4ed5ec994307ffb20fb78ec2269e04ce392.tar.xz egit-3c58e4ed5ec994307ffb20fb78ec2269e04ce392.zip | |
Use scrolling instead of soft-wrap in commit message text field
Wrapping is not desired for text like stack traces or code snippets.
Also, if hard-wrap is turned off, one may actually want to see the
message as it will be in the commit (most viewers don't soft-wrap the
commit message).
To only display scroll bars when necessary, also use
setAlwaysShowScrollBars(false).
Change-Id: I13175041866897960d434688f751fa20b18efa30
Signed-off-by: Robin Stocker <robin@nibor.org>
| -rw-r--r-- | org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/SpellcheckableMessageArea.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/SpellcheckableMessageArea.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/SpellcheckableMessageArea.java index adbeb46c91..c7414aad65 100644 --- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/SpellcheckableMessageArea.java +++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/SpellcheckableMessageArea.java @@ -268,7 +268,8 @@ public class SpellcheckableMessageArea extends Composite { AnnotationModel annotationModel = new AnnotationModel(); sourceViewer = new SourceViewer(this, null, null, true, SWT.MULTI - | SWT.V_SCROLL | SWT.WRAP); + | SWT.V_SCROLL | SWT.H_SCROLL); + getTextWidget().setAlwaysShowScrollBars(false); getTextWidget().setFont(UIUtils .getFont(UIPreferences.THEME_CommitMessageEditorFont)); |
