Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » IInstallFeatureOperation vs. P2
IInstallFeatureOperation vs. P2 [message #114034] Sat, 12 July 2008 12:45 Go to next message
Eugen Reiswich is currently offline Eugen ReiswichFriend
Messages: 35
Registered: July 2009
Member
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 18:38 Go to previous message
Pascal Rapicault is currently offline Pascal RapicaultFriend
Messages: 333
Registered: July 2009
Location: Ottawa
Senior Member
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
>
Previous Topic:Separating config.ini and osgi cache.
Next Topic:[p2] Director install: artifact file for com.ibm.icu noot found
Goto Forum:
  


Current Time: Thu Apr 25 16:11:39 GMT 2024

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

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

Back to the top