Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug223864_ToolTipToolbarButton.java')
-rw-r--r--tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug223864_ToolTipToolbarButton.java54
1 files changed, 27 insertions, 27 deletions
diff --git a/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug223864_ToolTipToolbarButton.java b/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug223864_ToolTipToolbarButton.java
index 894368c462..f42a60f52d 100644
--- a/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug223864_ToolTipToolbarButton.java
+++ b/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug223864_ToolTipToolbarButton.java
@@ -23,33 +23,33 @@ import org.eclipse.swt.widgets.ToolItem;
public class Bug223864_ToolTipToolbarButton {
- public static void main(String[] args) {
- Display display= new Display();
- Shell parent= new Shell(display);
- parent.setText("Parent");
-
- Shell child= new Shell(parent, SWT.ON_TOP | SWT.SHELL_TRIM);
- GridLayout gridLayout= new GridLayout(1, false);
- child.setLayout(gridLayout);
- ToolBar bar= new ToolBar(child, SWT.NONE);
- ToolItem button= new ToolItem(bar, SWT.PUSH);
- button.setImage(display.getSystemImage(SWT.ICON_QUESTION));
- button.setToolTipText("Do you see me?");
+ public static void main(String[] args) {
+ Display display= new Display();
+ Shell parent= new Shell(display);
+ parent.setText("Parent");
+
+ Shell child= new Shell(parent, SWT.ON_TOP | SWT.SHELL_TRIM);
+ GridLayout gridLayout= new GridLayout(1, false);
+ child.setLayout(gridLayout);
+ ToolBar bar= new ToolBar(child, SWT.NONE);
+ ToolItem button= new ToolItem(bar, SWT.PUSH);
+ button.setImage(display.getSystemImage(SWT.ICON_QUESTION));
+ button.setToolTipText("Do you see me?");
- parent.setBounds(100, 100, 160, 100);
- child.setBounds(150, 150, 160, 100);
-
- parent.open();
-
- child.setVisible(true);
- child.setActive(); // comment this out and widget.tooltip appears...
- parent.setActive();
-
- while (!parent.isDisposed()) {
- if (!display.readAndDispatch())
- display.sleep();
- }
- display.dispose();
- }
+ parent.setBounds(100, 100, 160, 100);
+ child.setBounds(150, 150, 160, 100);
+
+ parent.open();
+
+ child.setVisible(true);
+ child.setActive(); // comment this out and widget.tooltip appears...
+ parent.setActive();
+
+ while (!parent.isDisposed()) {
+ if (!display.readAndDispatch())
+ display.sleep();
+ }
+ display.dispose();
+ }
}

Back to the top