Getting display of running RCP with application in same JVM [message #460079] |
Wed, 13 December 2006 03:35  |
Eclipse User |
|
|
|
Originally posted by: no.no.no
Hi,
i'm currently trying to write a program, that starts a RCP Application and does
some gui testing stuff. Therefore i wrote a server, that starts the RCP Application
in the same JVM. I am having huge problems accessing the display of a started
RCP Application, or to be more specific to find a display, that is not null. Anyone
has an idea? I already tried to debug all running threads, but no results.
Dennis
|
|
|
Re: Getting display of running RCP with application in same JVM [message #460095 is a reply to message #460079] |
Wed, 13 December 2006 08:31  |
Eclipse User |
|
|
|
Display.getDisplay() will do it, but only from the SWT classloader and/or one of its dependents. You might want to have a look at the Plugin JUnit UI tests that Eclipse use to see how they interact with it. I somewhat suspect that they fire the instance up, and then communicate over a socket with it to perform tests, rather than issuing commands from the calling process, though.
Alex.
|
|
|
Powered by
FUDForum. Page generated in 0.03625 seconds