Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Where is site list saved in P2?
Where is site list saved in P2? [message #125799] Thu, 12 February 2009 09:43 Go to next message
Delos Missing name is currently offline Delos Missing nameFriend
Messages: 6
Registered: July 2009
Junior Member
Hi,

I'm curious about the site list of "available software" tab in P2.

After I added a new site in P2, I searched all the xml and txt files in
eclipse for the keyword of my site and deleted the new site from all the
search result. To my surprise, when I launched eclipse, in "available
software" tab, I can still see the new site there.

Is there anyone can help to explain about this?

Thanks in advance!
Re: Where is site list saved in P2? [message #125812 is a reply to message #125799] Thu, 12 February 2009 15:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

On 2/12/2009 4:43 AM, Delos wrote:
> Hi,
>
> I'm curious about the site list of "available software" tab in P2.
>
> After I added a new site in P2, I searched all the xml and txt files in
> eclipse for the keyword of my site and deleted the new site from all the
> search result. To my surprise, when I launched eclipse, in "available
> software" tab, I can still see the new site there.
> Is there anyone can help to explain about this?

I don't know where that data is stored, but I'm curious why you don't
just use the Manage Sites button to remove unwanted sites from the list?
If you want to do it programmatically, shouldn't you be asking about API
to do so?
What I'm saying is that mucking around with p2's data files behind its
back is probably not a wise thing to do.

Eric
Re: Where is site list saved in P2? [message #125838 is a reply to message #125812] Fri, 13 February 2009 01:22 Go to previous messageGo to next message
Delos Missing name is currently offline Delos Missing nameFriend
Messages: 6
Registered: July 2009
Junior Member
Thanks Eric! I know it's not a good idea to access the data directly. I'm
just curious about this.

For the P2 api, in fact, I don't know where it can be found.I found
nothing even in eclipse help document.If possible, could you give any
hints?

Thanks a lot!
Re: Where is site list saved in P2? [message #125914 is a reply to message #125838] Wed, 18 February 2009 09:06 Go to previous message
Eclipse UserFriend
Originally posted by: jacek.pospychala.pl.ibm.com

Delos pisze:
> Thanks Eric! I know it's not a good idea to access the data directly.
> I'm just curious about this.

it's in
configuration\.settings\org.eclipse.equinox.p2.metadata.repo sitory.prefs
and
configuration\.settings\org.eclipse.equinox.p2.artifacts.rep ository.prefs

Regarding API, you can quickly find things like this using PDE Spy.
Go to "Help -> Software Updates" and press "Manage Sites". Next in the
"Available Software Sites" window press Alt+Shift+F1. You'll see PDE Spy
telling that current active shell is RepositoryManipulationDialog. That
class should be found in org.eclipse.equinox.p2.ui. There navigate to
how does "Add Site" button works.
Previous Topic:External libraries
Next Topic:Locate update site url
Goto Forum:
  


Current Time: Tue Mar 19 14:01:17 GMT 2024

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

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

Back to the top