-package org.simantics.scl.ui.console;\r
-\r
-import org.eclipse.swt.SWT;\r
-import org.eclipse.swt.layout.FillLayout;\r
-import org.eclipse.swt.widgets.Display;\r
-import org.eclipse.swt.widgets.Shell;\r
-import org.junit.Test;\r
-\r
-public class TestSCLConsole {\r
-\r
- @Test\r
- public void testConsole() throws Exception {\r
- Display display = new Display();\r
- Shell shell = new Shell(display);\r
- shell.setSize(640, 480);\r
- \r
- FillLayout layout = new FillLayout();\r
- shell.setLayout(layout);\r
- \r
- // Test console\r
- new SCLConsole(shell, SWT.NONE);\r
- \r
- // Open shell\r
- shell.open();\r
- while (!shell.isDisposed()) {\r
- if (!display.readAndDispatch()) \r
- display.sleep();\r
- }\r
- display.dispose();\r
- }\r
+package org.simantics.scl.ui.console;
+
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.FillLayout;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Shell;
+import org.junit.Test;
+
+public class TestSCLConsole {
+
+ @Test
+ public void testConsole() throws Exception {
+ Display display = new Display();
+ Shell shell = new Shell(display);
+ shell.setSize(640, 480);
+
+ FillLayout layout = new FillLayout();
+ shell.setLayout(layout);
+
+ // Test console
+ new SCLConsole(shell, SWT.NONE);
+
+ // Open shell
+ shell.open();
+ while (!shell.isDisposed()) {
+ if (!display.readAndDispatch())
+ display.sleep();
+ }
+ display.dispose();
+ }
}
\ No newline at end of file