1 package org.simantics.scl.ui.console;
\r
3 import org.eclipse.swt.SWT;
\r
4 import org.eclipse.swt.layout.FillLayout;
\r
5 import org.eclipse.swt.widgets.Display;
\r
6 import org.eclipse.swt.widgets.Shell;
\r
7 import org.junit.Test;
\r
9 public class TestSCLConsole {
\r
12 public void testConsole() throws Exception {
\r
13 Display display = new Display();
\r
14 Shell shell = new Shell(display);
\r
15 shell.setSize(640, 480);
\r
17 FillLayout layout = new FillLayout();
\r
18 shell.setLayout(layout);
\r
21 new SCLConsole(shell, SWT.NONE);
\r
25 while (!shell.isDisposed()) {
\r
26 if (!display.readAndDispatch())
\r