[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.equinox] Programmatically Update RCP Feature

hi

we use eclipse 3.4.1 and 3.4.2 for our Rich Client Application. until now we simply exported a product and installed it fully.

Now we need to update some features when the program starts automatically, without any User-Interface.

we simply want do to somthing like this: updateFeature(featureID, remoteURL)

We tried to use P2 and downloaded the P2Utils example to try it.
We did the recommended getBundle starts as described in the samples.

in eclipse 3.4.1 w get null for the profile
in eclipse 3.4.2 we get null already for the profile Registry.

since all the api from old update is depricated, and the p2utils api used is discourage for usage, and i do not find that all very complex. i need help.

I simply whant do update a feature from my remote site, as simple as possible!
Can anyone tell us what we can do to get this up and running quickly ?


thanks!


IProfileRegistry profileRegistry = (IProfileRegistry) ServiceHelper.getService(context, IProfileRegistry.class.getName());
if (profileRegistry == null)
return false;
IProfile profile = profileRegistry.getProfile(IProfileRegistry.SELF);
if (profile == null)
return false;