Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Sharing PlatformUI Workbench between two RCP applications.(How to share workbench between two different RCP applications?)
icon5.gif  Sharing PlatformUI Workbench between two RCP applications. [message #1703099] Tue, 28 July 2015 14:25 Go to next message
vaibhav gupta is currently offline vaibhav guptaFriend
Messages: 2
Registered: July 2015
Junior Member
Situation: I have two RCP apps, the first one is used to create a workbench and also find all the other applications (implementing IApplication) installed on the platform. I am using OSGi Application Admin Service to get the list of all applications. A user can select any of the applications from the list and start/stop them.

Problem: when the user tries to start the selected application, the start fails as the application being launched tries to create its own workbench, which fails as there can be only one single workbench.

Question: Is there a way to share workbench across RCP applications? Or any other workaround so that we can have more than 1 workbenches, such that each RCP application can create its own workbench and run in isolation?

I was trying to follow this article: https://wiki.eclipse.org/Equinox_Application_Model_Demo

But in the above case, the other applications (which can be launched) do not create a workbench, instead just use the display to get a shell.
Re: Sharing PlatformUI Workbench between two RCP applications. [message #1703138 is a reply to message #1703099] Tue, 28 July 2015 20:04 Go to previous messageGo to next message
Eclipse UserFriend
Sorry, you can only launch a single workbench per JVM, except with RAP.
Re: Sharing PlatformUI Workbench between two RCP applications. [message #1703145 is a reply to message #1703138] Tue, 28 July 2015 21:04 Go to previous messageGo to next message
vaibhav gupta is currently offline vaibhav guptaFriend
Messages: 2
Registered: July 2015
Junior Member
well that makes sense. But, is there a way for multiple RCP apps running on same JVM can share that one workbench ?
Re: Sharing PlatformUI Workbench between two RCP applications. [message #1705327 is a reply to message #1703145] Thu, 13 August 2015 19:37 Go to previous message
Eclipse UserFriend
You can have multiple IApplication instances: review your cardinality and scope settings. But you can only have a single IApplication that creates the workbench. As long as you ensure your other apps launch afterwards, you'll be fine. You could also structure your apps to be launched using the org.eclipse.ui.startup extension point instead of the IApplication approach.
Previous Topic:Command/keyboard binding to jump between split editor panes?
Next Topic:how to import eclipse source code
Goto Forum:
  


Current Time: Tue Mar 19 09:21:59 GMT 2024

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

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

Back to the top