Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Merks2019-10-28 07:53:34 +0000
committerEd Merks2019-10-28 07:53:34 +0000
commitd73c8c662b22615a3c159d4d9be7c1c1ec217783 (patch)
tree4ce51caca7042af0b5ede0fff073d20d84bada62
parentf1ee068e7c9fa3aa5bfe73ee94d85894d469031e (diff)
downloadeclipse.platform.swt-d73c8c662b22615a3c159d4d9be7c1c1ec217783.tar.gz
eclipse.platform.swt-d73c8c662b22615a3c159d4d9be7c1c1ec217783.tar.xz
eclipse.platform.swt-d73c8c662b22615a3c159d4d9be7c1c1ec217783.zip
Bug 552215 - [GTK3] Tree: Excessive flickering
Fix the line endings to be LF not CRLF. Change-Id: I17b329b4b50aaf65281f7f0065701f57fce373eb Signed-off-by: Ed Merks <ed.merks@gmail.com>
-rw-r--r--tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug552215_TreeFlickering_getClientArea.java118
1 files changed, 59 insertions, 59 deletions
diff --git a/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug552215_TreeFlickering_getClientArea.java b/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug552215_TreeFlickering_getClientArea.java
index 2122490a01..12b93f6cdb 100644
--- a/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug552215_TreeFlickering_getClientArea.java
+++ b/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug552215_TreeFlickering_getClientArea.java
@@ -1,59 +1,59 @@
-/*******************************************************************************
- * Copyright (c) 2019 Syntevo and others.
- *
- * This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License 2.0
- * which accompanies this distribution, and is available at
- * https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * Syntevo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.swt.tests.gtk.snippets;
-
-import org.eclipse.swt.*;
-import org.eclipse.swt.layout.*;
-import org.eclipse.swt.widgets.*;
-
-public class Bug552215_TreeFlickering_getClientArea {
- public static void main(String[] args) {
- final Display display = new Display();
- final Shell shell = new Shell(display);
- shell.setLayout(new GridLayout());
-
- Label lblHint = new Label(shell, 0);
- lblHint.setText("Bug: Move mouse over Tree items => flickering");
-
- Tree tree = new Tree(shell, SWT.NONE);
- tree.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.FILL_VERTICAL));
-
- // Countermeasures for Bug 550606
- tree.setHeaderVisible(true);
-
- // This is what causes flickering
- tree.addListener(SWT.EraseItem, event -> {
- tree.getClientArea();
- });
-
- // First paint must be with no items to trigger 'Tree.gtk_draw' code from Bug 541427
- display.timerExec(1000, () -> {
- for (int i = 0; i < 20; i++) {
- final TreeItem rootNode = new TreeItem(tree, SWT.NONE);
- rootNode.setText("node " + i);
- }
- });
-
- shell.setSize(400, 600);
- shell.open();
-
- while (!shell.isDisposed()) {
- if (!display.readAndDispatch()) {
- display.sleep();
- }
- }
-
- display.dispose();
- }
-}
+/*******************************************************************************
+ * Copyright (c) 2019 Syntevo and others.
+ *
+ * This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License 2.0
+ * which accompanies this distribution, and is available at
+ * https://www.eclipse.org/legal/epl-2.0/
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ *
+ * Contributors:
+ * Syntevo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.swt.tests.gtk.snippets;
+
+import org.eclipse.swt.*;
+import org.eclipse.swt.layout.*;
+import org.eclipse.swt.widgets.*;
+
+public class Bug552215_TreeFlickering_getClientArea {
+ public static void main(String[] args) {
+ final Display display = new Display();
+ final Shell shell = new Shell(display);
+ shell.setLayout(new GridLayout());
+
+ Label lblHint = new Label(shell, 0);
+ lblHint.setText("Bug: Move mouse over Tree items => flickering");
+
+ Tree tree = new Tree(shell, SWT.NONE);
+ tree.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.FILL_VERTICAL));
+
+ // Countermeasures for Bug 550606
+ tree.setHeaderVisible(true);
+
+ // This is what causes flickering
+ tree.addListener(SWT.EraseItem, event -> {
+ tree.getClientArea();
+ });
+
+ // First paint must be with no items to trigger 'Tree.gtk_draw' code from Bug 541427
+ display.timerExec(1000, () -> {
+ for (int i = 0; i < 20; i++) {
+ final TreeItem rootNode = new TreeItem(tree, SWT.NONE);
+ rootNode.setText("node " + i);
+ }
+ });
+
+ shell.setSize(400, 600);
+ shell.open();
+
+ while (!shell.isDisposed()) {
+ if (!display.readAndDispatch()) {
+ display.sleep();
+ }
+ }
+
+ display.dispose();
+ }
+}

Back to the top