Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 09:33 Go to next message
sandra is currently offline sandra
Messages: 2
Registered: August 2011
Junior Member
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 20:53 Go to previous messageGo to next message
Wim Jongman is currently offline Wim Jongman
Messages: 418
Registered: July 2009
Senior Member
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 07:07 Go to previous messageGo to next message
sandra is currently offline sandra
Messages: 2
Registered: August 2011
Junior Member
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 09:52 Go to previous message
Alexandra Niculai is currently offline Alexandra Niculai
Messages: 84
Registered: July 2009
Member
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 09:53]

Report message to a moderator

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


Current Time: Thu Oct 23 04:04:58 GMT 2014

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

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