Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Help with a Non-GUI RCP
Help with a Non-GUI RCP [message #436157] Wed, 31 August 2005 17:49 Go to next message
Kevin Stedman is currently offline Kevin StedmanFriend
Messages: 34
Registered: July 2009
Member
Hello All,


Here is the scenario I am trying to solve:
I have a project that is building plugins for another application. This
application has all the plugin API code written in C/C++. I have figured
out a method to start the Java VM as a plugin to this application. I
would now like to create a plugin that starts up just the eclipse platform
with no GUIs. I do want to take advantage of the Plugin and extension
interface in Eclipse. The application plugin needs to create eclipse
object through JNI calls and destroy the eclipse object when no longer
being used. There are a number of calls from the application plugin that
I want to pass on to the eclipse plugin or retrieve from extension points.
I would like this to be as stripped down as possible to only use the
basics for having eclipse plugins and extensions.

Does anyone know if there is an api to start up the eclipse platform? I
could not find the source for org.eclipse.core.launcher to see how it is
started up currently. The API also does not make this obvious.

The reason for this we have written some eclipse plugins for other
projects and would like to use these plugins with the current project I am
working on.


Kevin
Re: Help with a Non-GUI RCP [message #436170 is a reply to message #436157] Thu, 01 September 2005 13:46 Go to previous message
Alex Blewitt is currently offline Alex BlewittFriend
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
Previous Topic:Multipage Editor Tabs
Next Topic:setShowPerspectiveBar() -> how to get PerspectiveBar created?
Goto Forum:
  


Current Time: Mon Dec 09 10:17:06 GMT 2024

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

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

Back to the top