Change Update-Site of eclipse 3.5-based RCP application [message #713265] |
Mon, 08 August 2011 05:33  |
Eclipse User |
|
|
|
We're distributing a RCP application, which is based on eclipse 3.5. We export it via Eclipse and define the update-site via p2.inf.
It is known, that while running the RCP application it is not possible to change the definitions of the update-site.
But - please - is there a way to change the definition of the update-site via an update?
Like as if we would provide a new p2.inf over the update-site?
Or is the only way to change the definition of the update-site a new export of the product?
Thanks a lot!
Sandra
|
|
|
|
|
Re: Change Update-Site of eclipse 3.5-based RCP application [message #714699 is a reply to message #713265] |
Thu, 11 August 2011 05:52  |
Eclipse User |
|
|
|
Hi,
If you put the update site in an external file (that you can later change without rebuilding), I think this should work (it's not necessarily the best way):
RepositoryTracker repositoryManager = ProvisioningUI.getDefaultUI()
.getRepositoryTracker();
ProvisioningSession session = ProvisioningUI.getDefaultUI()
.getSession();
URI[] existingRepositories = repositoryManager
.getKnownRepositories(session);
repositoryManager.removeRepositories(existingRepositories, session);
repositoryManager.addRepository(repositoryManager
.locationFromString("theLocationOfTheUpdateSite"),//$NON-NLS-1$
"Your Update Site", session);//$NON-NLS-1$
[Updated on: Thu, 11 August 2011 05:53] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.05276 seconds