Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to add workspace launcher to RCP program?(I want to let users specify workspace location like eclipse does)
How to add workspace launcher to RCP program? [message #1744440] Tue, 27 September 2016 05:20 Go to next message
Justin Huang is currently offline Justin HuangFriend
Messages: 2
Registered: July 2014
Junior Member
1st question: How do I add workspace launcher to my RCP?

2nd question:

In my, if I have:
public IAdaptable getDefaultPageInput() {
return ResourcesPlugin.getWorkspace().getRoot();


Will it be able to pick the workspace location specified in workspace launcher?
Re: How to add workspace launcher to RCP program? [message #1744510 is a reply to message #1744440] Tue, 27 September 2016 14:42 Go to previous message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 877
Registered: January 2012
Senior Member

Are you referring to the 'choose workspace dialog'? You can see how the IDE is configured by looking at its code in the org.eclipse.ui.ide.application, specifically at the IDEApplication class.

Eclipse Core Resources only supports a single workspace root. There are a few ways to find it:

  • ResourcesPlugin.getWorkspace()
  • org.eclipse.core.runtime's Platform.getInstanceLocation()
  • As an OSGi service: see org.eclipse.osgi.service.datalocation.Location

Previous Topic:Conflicts between identical handlers in Eclipse RCP
Next Topic:ViewPart is behaving different in same usecase
Goto Forum:

Current Time: Wed Dec 02 13:25:29 GMT 2020

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

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

Back to the top