Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2011-05-29 19:34:27 +0000
committerKevin Sawicki2011-05-29 19:34:27 +0000
commit38298ff0f85401604648d94cda9f1804e37789dc (patch)
tree664cf05bcb9aefcfe7ab01fbb2718eb0c6296f03
parentb43ed163e679812f797f06227213d1a24f4eddf0 (diff)
downloadegit-38298ff0f85401604648d94cda9f1804e37789dc.tar.gz
egit-38298ff0f85401604648d94cda9f1804e37789dc.tar.xz
egit-38298ff0f85401604648d94cda9f1804e37789dc.zip
Remove double borders displayed around message area.
The commit viewer message text area was displaying two sets of borders on platforms using native borders through FormToolkit. Change-Id: Ib9039d1bdd3dda69ec23c7770d5b267911bca1d3 Signed-off-by: Kevin Sawicki <kevin@github.com>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/commit/CommitEditorPage.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/commit/CommitEditorPage.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/commit/CommitEditorPage.java
index be2566bd0..587ace64f 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/commit/CommitEditorPage.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/commit/CommitEditorPage.java
@@ -338,8 +338,9 @@ public class CommitEditorPage extends FormPage {
}
};
- textContent.setData(FormToolkit.KEY_DRAW_BORDER,
- FormToolkit.TEXT_BORDER);
+ if ((toolkit.getBorderStyle() & SWT.BORDER) == 0)
+ textContent.setData(FormToolkit.KEY_DRAW_BORDER,
+ FormToolkit.TEXT_BORDER);
GridDataFactory.fillDefaults().hint(SWT.DEFAULT, 80).grab(true, true)
.applyTo(textContent);
textContent.getTextWidget().setEditable(false);

Back to the top