[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform] Re: Access to MessageDialog object
|
- From: "Francis Upton (News)" <francisu@xxxxxxxx>
- Date: Thu, 24 Jul 2008 01:05:36 -0700
- Newsgroups: eclipse.platform
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.14 (X11/20080501)
I just subclass it and put a static that points to the current instance
for testing purposes. I don't think there is any other way you can find it.
Nadav wrote:
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...
--
*new* Common Navigator Framework section in:
3.4RC4 Platform Plugin Developer Guide (Programmer's Guide)
http://help.eclipse.org/ganymede/topic/org.eclipse.platform.doc.isv/guide/cnf.htm
http://dev.eclipse.org/blogs/francis
http://wiki.eclipse.org/Common_Navigator_Framework
http://wiki.eclipse.org/Common_Navigator_Framework_Use_Cases
You have brains in your head.
You have feet in your shoes.
- Dr Seuss, Oh the Places You'll Go