Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Change Eclipse default update repository list
Change Eclipse default update repository list [message #794583] Thu, 09 February 2012 13:16 Go to next message
Alan Missing name is currently offline Alan Missing nameFriend
Messages: 17
Registered: November 2010
Junior Member
Hi,

I am trying to deploy a version of Eclipse and would like control over the default repository list.

I have learned that this is stored in the user's home directory under:

".eclipse\org.eclipse.platform_3.7.0_525061626\p2\org.eclipse.equinox.p2.engine\profileRegistry\epp.package.cpp.profile\.data\.settings\org.eclipse.equinox.p2.metadata.repository.prefs"


However, I would rather not deploy this file to a user specific location because there might already be one from another Eclipse installation and there could be more than one user account.

Is there any way that I can avoid the user profile?

I did find an equivelent file under the main Eclipse folder:

"eclipse\p2\org.eclipse.equinox.p2.engine\profileRegistry\epp.package.cpp.profile\.data\.settings\org.eclipse.equinox.p2.metadata.repository.prefs"


but changing this didn't make any difference.

Thanks,
Alan
Re: Change Eclipse default update repository list [message #798314 is a reply to message #794583] Tue, 14 February 2012 14:23 Go to previous message
Alan Missing name is currently offline Alan Missing nameFriend
Messages: 17
Registered: November 2010
Junior Member
I did manage to get a solution to this and will share it in case it helps others.

I created a lightweight plugin that loads when Eclipse starts. It then programatically adds the repository:

final ProvisioningUI ui = ProvUIActivator.getDefault().getProvisioningUI();
IArtifactRepositoryManager artifactManager = ProvUI.getArtifactRepositoryManager(ui.getSession());
artifactManager.addRepository(new URI(UPDATE_SITE_URL);

IMetadataRepositoryManager metadataManager = ProvUI.getMetadataRepositoryManager(ui.getSession());
metadataManager.addRepository(new URI(UPDATE_SITE_URL);


Inspired by this: http://stackoverflow.com/a/7384954/101642
Previous Topic:watchpoint on pointer data (not pointer itself)
Next Topic:Phyton and C++ in same Eclipse installation?
Goto Forum:
  


Current Time: Thu Sep 19 00:00:24 GMT 2024

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

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

Back to the top