1 package org.simantics.scl.ui.browser;
4 import org.eclipse.swt.SWTError;
5 import org.eclipse.swt.layout.FillLayout;
6 import org.eclipse.swt.widgets.Display;
7 import org.eclipse.swt.widgets.Shell;
10 public class TestSCLDocumentationBrowser {
13 public void testDocumentationBrowser() throws Exception {
14 Display display = new Display();
15 Shell shell = new Shell(display);
16 shell.setText("SCL module documentation"); //$NON-NLS-1$
17 shell.setLayout(new FillLayout());
18 SCLDocumentationBrowser browser;
20 browser = new SCLDocumentationBrowser(shell);
21 } catch (SWTError e) {
22 System.out.println("Could not instantiate Browser: " + e.getMessage()); //$NON-NLS-1$
26 browser.setLocation("Prelude"); //$NON-NLS-1$
28 while (!shell.isDisposed()) {
29 if (!display.readAndDispatch())