X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.scl.ui%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fui%2Fbrowser%2FTestSCLDocumentationBrowser.java;h=a1365544b7483ce0306f38cb4840de9e3943929b;hb=04f200d2010339b05ba016b6f0c247653f5bdc97;hp=811c786c30004efdfbcdedfe09ab18ec98f4ae47;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/browser/TestSCLDocumentationBrowser.java b/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/browser/TestSCLDocumentationBrowser.java index 811c786c3..a1365544b 100644 --- a/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/browser/TestSCLDocumentationBrowser.java +++ b/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/browser/TestSCLDocumentationBrowser.java @@ -1,35 +1,35 @@ -package org.simantics.scl.ui.browser; - - -import org.eclipse.swt.SWTError; -import org.eclipse.swt.layout.FillLayout; -import org.eclipse.swt.widgets.Display; -import org.eclipse.swt.widgets.Shell; -import org.junit.Test; - -public class TestSCLDocumentationBrowser { - - @Test - public void testDocumentationBrowser() throws Exception { - Display display = new Display(); - Shell shell = new Shell(display); - shell.setText("SCL module documentation"); - shell.setLayout(new FillLayout()); - SCLDocumentationBrowser browser; - try { - browser = new SCLDocumentationBrowser(shell); - } catch (SWTError e) { - System.out.println("Could not instantiate Browser: " + e.getMessage()); - display.dispose(); - return; - } - browser.setLocation("Prelude"); - shell.open(); - while (!shell.isDisposed()) { - if (!display.readAndDispatch()) - display.sleep(); - } - display.dispose(); - } - -} +package org.simantics.scl.ui.browser; + + +import org.eclipse.swt.SWTError; +import org.eclipse.swt.layout.FillLayout; +import org.eclipse.swt.widgets.Display; +import org.eclipse.swt.widgets.Shell; +import org.junit.Test; + +public class TestSCLDocumentationBrowser { + + @Test + public void testDocumentationBrowser() throws Exception { + Display display = new Display(); + Shell shell = new Shell(display); + shell.setText("SCL module documentation"); + shell.setLayout(new FillLayout()); + SCLDocumentationBrowser browser; + try { + browser = new SCLDocumentationBrowser(shell); + } catch (SWTError e) { + System.out.println("Could not instantiate Browser: " + e.getMessage()); + display.dispose(); + return; + } + browser.setLocation("Prelude"); + shell.open(); + while (!shell.isDisposed()) { + if (!display.readAndDispatch()) + display.sleep(); + } + display.dispose(); + } + +}