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/Bug197690_CVSWizard.java')
-rw-r--r--tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug197690_CVSWizard.java34
1 files changed, 17 insertions, 17 deletions
diff --git a/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug197690_CVSWizard.java b/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug197690_CVSWizard.java
index bf106ba246..bd363b0e3a 100644
--- a/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug197690_CVSWizard.java
+++ b/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug197690_CVSWizard.java
@@ -24,23 +24,23 @@ import org.eclipse.swt.widgets.Shell;
public class Bug197690_CVSWizard {
public static void main(String[] args) {
- final Display display = new Display();
- final Shell shell1 = new Shell(display);
- shell1.setLayout(new FillLayout());
- shell1.setBounds(10, 10, 300, 300);
- final DateTime dt = new DateTime(shell1, SWT.DATE);
- dt.addSelectionListener(new SelectionAdapter(){
- @Override
+ final Display display = new Display();
+ final Shell shell1 = new Shell(display);
+ shell1.setLayout(new FillLayout());
+ shell1.setBounds(10, 10, 300, 300);
+ final DateTime dt = new DateTime(shell1, SWT.DATE);
+ dt.addSelectionListener(new SelectionAdapter(){
+ @Override
public void widgetSelected(SelectionEvent e) {
- System.out.println(dt.getMonth());
- System.out.println(dt.getDay());
- System.out.println(dt.getYear());
- }
- });
- shell1.open();
- while (!shell1.isDisposed()) {
- if (!display.readAndDispatch()) display.sleep();
- }
- display.dispose();
+ System.out.println(dt.getMonth());
+ System.out.println(dt.getDay());
+ System.out.println(dt.getYear());
+ }
+ });
+ shell1.open();
+ while (!shell1.isDisposed()) {
+ if (!display.readAndDispatch()) display.sleep();
+ }
+ display.dispose();
}
}

Back to the top