[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Access to MessageDialog object

I want to write a test in JUnit to see that an Error Dialog pops up with the correct message.

How, in my unit test, do I get at the MessageDialog object my that my program creates?

I assume I need to do PlatformUI.getWorkbench().getDisplay().getActiveShell() or PlatformUI.getWorkbench().getDisplay().getActiveShell().getChildren(), but from there I'm lost...