Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Getting display of running RCP with application in same JVM
Getting display of running RCP with application in same JVM [message #460079] Wed, 13 December 2006 03:35 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:RCP-App with platform dependence
Next Topic:Problem registering custom ProtocolHandler
Goto Forum:
  


Current Time: Sat Mar 15 16:29:03 EDT 2025

Powered by FUDForum. Page generated in 0.03625 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top