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