Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Change Update-Site of eclipse 3.5-based RCP application
Change Update-Site of eclipse 3.5-based RCP application [message #713265] Mon, 08 August 2011 05:33 Go to next message
Eclipse UserFriend
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
(no subject) [message #714131 is a reply to message #713265] Tue, 09 August 2011 16:53 Go to previous messageGo to next message
Eclipse UserFriend
Hi Sandra,

I think it must be possible in some way. The location of the update site can
be changed manually. So why do you say it cannot be done?

Regards,

Wim


> 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: (no subject) [message #714255 is a reply to message #714131] Wed, 10 August 2011 03:07 Go to previous messageGo to next message
Eclipse UserFriend
Hi Wim,

I haven't found a way yet to manually change the update site in an rcp application based on 3.5. There seems to be no place to edit them.

How do you do it?

Regards,

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 Go to previous message
Eclipse UserFriend
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

Previous Topic:Customize Properties View
Next Topic:[CNF] CommonViewer label provider
Goto Forum:
  


Current Time: Thu Jul 10 07:09:55 EDT 2025

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

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

Back to the top