From: <gjo...@us...> - 2008-05-29 13:57:39
|
Revision: 2722 http://abbot.svn.sourceforge.net/abbot/?rev=2722&view=rev Author: gjohnsto Date: 2008-05-29 06:57:47 -0700 (Thu, 29 May 2008) Log Message: ----------- Tidied up a bit. Modified Paths: -------------- abbot.swt/trunk/abbot.swt.test/src/abbot/swt/finder/matchers/test/MatcherTest.java abbot.swt/trunk/abbot.swt.test/src/abbot/swt/finder/matchers/test/MatcherTestApplication.java Modified: abbot.swt/trunk/abbot.swt.test/src/abbot/swt/finder/matchers/test/MatcherTest.java =================================================================== --- abbot.swt/trunk/abbot.swt.test/src/abbot/swt/finder/matchers/test/MatcherTest.java 2008-05-29 13:56:24 UTC (rev 2721) +++ abbot.swt/trunk/abbot.swt.test/src/abbot/swt/finder/matchers/test/MatcherTest.java 2008-05-29 13:57:47 UTC (rev 2722) @@ -10,8 +10,8 @@ protected void setUp() throws Exception { super.setUp(); - app = (MatcherTestApplication) Displays.syncExec(getDisplay(), new Result() { - public Object result() { + app = Displays.syncExec(getDisplay(), new Result<MatcherTestApplication>() { + public MatcherTestApplication result() { return new MatcherTestApplication(getDisplay()); } }); Modified: abbot.swt/trunk/abbot.swt.test/src/abbot/swt/finder/matchers/test/MatcherTestApplication.java =================================================================== --- abbot.swt/trunk/abbot.swt.test/src/abbot/swt/finder/matchers/test/MatcherTestApplication.java 2008-05-29 13:56:24 UTC (rev 2721) +++ abbot.swt/trunk/abbot.swt.test/src/abbot/swt/finder/matchers/test/MatcherTestApplication.java 2008-05-29 13:57:47 UTC (rev 2722) @@ -338,4 +338,13 @@ shell.open(); } + public static void main(String[] args) { + Display display = Display.getDefault(); + MatcherTestApplication app = new MatcherTestApplication(display); + app.open(); + while (!app.shell.isDisposed()) { + if (!display.readAndDispatch()) + display.sleep(); + } + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |