|
Re: Help with a Non-GUI RCP [message #436170 is a reply to message #436157] |
Thu, 01 September 2005 13:46 |
Alex Blewitt Messages: 946 Registered: July 2009 |
Senior Member |
|
|
The launcher class is in the org.eclipse.core.launcher package. It's in the org.eclipse.platform plugin, if you want to have a look, or you can see it from CVS:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.platfor m/src/org/eclipse/core/launcher/
It's fairly easy to kickstart a headless Eclipse-type plugin; however, you might find that the plugins you depend on (in)advertently rely on UI components, so that might not work.
Furthermore, there's no real 'headless' IDE, so you'd have to build an RCP application to take advantage of the SDK features if that's what you wanted.
Once you've got your application/rcp defined, you can kick off the eclipse startup with invoking the 'main' method of org.eclipse.core.launcher, and specify the appropriate flags (e.g. -application org.mycorp.App). I'd test out running a headless Eclipse first though, and once that's done, hook it in via JNI.
You'll also have to figure out how you're going to keep the application running in memory. The main method on most apps will just return immediately, so you'll need to set up some kind of mechanism to ensure that it stays up and doesn't shutdown.
If you don't know what arguments that the launcher takes, have a skeg at:
http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse. platform.doc.isv/reference/misc/runtime-options.html
|
|
|
Powered by
FUDForum. Page generated in 0.03617 seconds