IInstallFeatureOperation vs. P2 [message #114034] |
Sat, 12 July 2008 08:45  |
Eclipse User |
|
|
|
Hi all,
I'm developing an RCP application where I need to install, update and
uninstall some features programmatically. Right now I'm using the
org.eclipse.update.operations.OperationManager to create my install,
update and uninstall operations.
As Eclipse Ganymede offers P2 to handle updates/installs I wonder if
there are examples how to perform the same commands using p2. Is this
possible and how complicated will this be?
After spending hours and hours with the P2 UI code I still haven't got an
idea how it really works. As I've already spent a lot of time to solve
this issue I would be very grateful for any advise.
Regards,
Eugen
|
|
|
Re: IInstallFeatureOperation vs. P2 [message #114540 is a reply to message #114034] |
Fri, 18 July 2008 14:38  |
Eclipse User |
|
|
|
In p2 the model is different, you create a request (ProfileChangeRequest)
that first gets resolved and eventually gets executed. The code in
ProvisioningHelper.install() shows this. If you want you can probably
directly use it.
Please take a look at the class ProvisioningHelper
"Eugen Reiswich" <reiswich@gmx.de> wrote in message
news:20cf0640f805ffd6c60cd7e4465b5392$1@www.eclipse.org...
> Hi all,
>
> I'm developing an RCP application where I need to install, update and
> uninstall some features programmatically. Right now I'm using the
> org.eclipse.update.operations.OperationManager to create my install,
> update and uninstall operations.
> As Eclipse Ganymede offers P2 to handle updates/installs I wonder if
> there are examples how to perform the same commands using p2. Is this
> possible and how complicated will this be?
> After spending hours and hours with the P2 UI code I still haven't got an
> idea how it really works. As I've already spent a lot of time to solve
> this issue I would be very grateful for any advise.
>
> Regards,
> Eugen
>
|
|
|
Powered by
FUDForum. Page generated in 0.05618 seconds