|
Re: Where is site list saved in P2? [message #125812 is a reply to message #125799] |
Thu, 12 February 2009 15:07 |
Eclipse User |
|
|
|
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 #125914 is a reply to message #125838] |
Wed, 18 February 2009 09:06 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.29112 seconds