Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLars Vogel2017-02-21 08:18:15 +0000
committerNiraj Modi2017-02-21 08:19:56 +0000
commitd19ed4d19e15640339f7793f6354be6b179174d4 (patch)
tree1198e57374dcfa6c085fe8118089a3ea7e102a35 /tests
parentb893ae5cf8e23c2ff34ea588a66f8da48a644b33 (diff)
downloadeclipse.platform.swt-d19ed4d19e15640339f7793f6354be6b179174d4.tar.gz
eclipse.platform.swt-d19ed4d19e15640339f7793f6354be6b179174d4.tar.xz
eclipse.platform.swt-d19ed4d19e15640339f7793f6354be6b179174d4.zip
Bug 506081 - Allow to ignore the margins for the Chevron in CTabFolder
Allows to control the usage of margins. Especially interesting for RCP customers which requires to minimized the usage of whitespace in their RCP applications. Getter and setters Usage of checkWidget for the new getter and setter this adds a new option to ignore margins. Change-Id: If62cb6f2fd577a2bf6e219d71c9827b34aa4aa30 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_CTabFolder.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_CTabFolder.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_CTabFolder.java
index 03e583675f..300718e432 100644
--- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_CTabFolder.java
+++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_CTabFolder.java
@@ -147,4 +147,13 @@ public void test_setHighlightEnabled () {
assertTrue(ctabFolder.getHighlightEnabled());
}
+@Test
+public void test_setIgnoreMargin() {
+ assertFalse("By default, ignore margins should not be enabled", ctabFolder.getIgnoreMargins());
+ ctabFolder.setIgnoreMargins(true);
+ assertTrue(ctabFolder.getIgnoreMargins());
+ ctabFolder.setIgnoreMargins(false);
+ assertFalse(ctabFolder.getIgnoreMargins());
+}
+
}

Back to the top