Community
Participate
Working Groups
Created attachment 110662 [details] uninstall button is grayed Build ID: I20080617-2000 Steps To Reproduce: 1. New->Server->"download additional server adapters" link 2. download and install any server adapters successfully 3. restart ganymede 4. open "software update" 5. select the adapter installed in "Installed Software" tab Symptom: "uninstall" button is not usable. More information: As I know, P2 in ganymede can only uninstall plugins which also installed with P2. So I guess the installation through "download additional server adapters" link doesn't use P2. So P2 can't uninstall the server adapters. But I think the scenario seems strange to user. Possible scenario may be: 1. "download additional server adapters" should install adapter with P2 so that the adapter installed can be uninstalled with P2. 2. If "download additional server adapters" doesn't install adapter with P2, then user should be notified that the installed adapter can't be uninstalled with P2. I think any of the scenario makes sense.
Can you confirm that p2 can only uninstall any plugins installed through p2? If so, this means that this is a serious regression for anyone currently using the Eclipse update API - and AFAIK everyone was told that the update APIs would still work in 3.4 and there was no immediate need to move off of them. If this is the case, then the second question is whether you can point me to documentation on p2 API and migration from update manager API.
For the Ganymede release you are unable to use the p2 UI to uninstall things which were installed by the old update manager UI or APIs. The discussion behind this and the decision is covered by bug 228517. The update manager APIs will be replaced with the director application and its APIs. There is some documentation in the Eclipse help system at: http://help.eclipse.org/ganymede/topic/org.eclipse.platform.doc.isv/guide/p2_director.html
Thanks for your reply! Houghton , so it's a correct behavior for the ganymede. Right?
In fact, I think WTP should install "additional server adapter" with P2 management. Then, the installed server adapter can be uninstalled with P2. Maybe this behavior is better than current behavior. What's your opinion?
WTP can and should switch to using p2 API for 3.5, and I've opened bugzilla 245469 to track that. I think the issue here is the 3.4 behavioural regression that means you can't uninstall the adapters in the meantime.
I followed the link in comment #2 and it had lots of info about the director application, but none about programmatic API. I couldn't find anything in the rest of the help or p2 wiki either. Can someone please point me to information on using p2 API?
We don't have detailed documentation on the p2 API yet since p2 only has provisional API. One of the plan items for 3.5 is to make real API so documentation about it is also on the list. In the meantime if you wish to browse the director application code, it is in the org.eclipse.equinox.p2.director.app project in the Application class.
*** This bug has been marked as a duplicate of bug 241637 ***