Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » How to start E4Application with ApplicationDescriptor.launch?
How to start E4Application with ApplicationDescriptor.launch? [message #915609] Mon, 17 September 2012 12:22 Go to previous message
Karl Weber is currently offline Karl Weber
Messages: 63
Registered: September 2010
Member
I would like to start an OSGI framework that does not start the E4Application right away. Rather, I would like to start it later with ApplicationDescriptor.launch(...).

Currently I am running a product with
-Dosgi.noShutdown=true -Declipse.application.launchDefault=false -Declipse.allowAppRelaunch=true
and
-console
in the workbench. With these options I can start the E4Application from the console by typing
osgi> startApp org.eclipse.e4.ui.workbench.swt.E4Application
and things work as expected.

However, when I get the ApplicationDescriptor in some OSGi service and try to launch the E4Application with
ApplicationDesciptor.launch(null)
I get the following exception
org.osgi.service.application.ApplicationException: The main thread is not available to launch the application: org.eclipse.e4.ui.workbench.swt.E4Application.0


What am I missing here?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Can we put one component inside another XWT composite
Next Topic:How to make the Part Stack tabs movable by mouse?
Goto Forum:
  


Current Time: Sat May 18 23:21:43 EDT 2013

Powered by FUDForum. Page generated in 0.01723 seconds