[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] p2 UI API

Hi Susan,

I reviewed the operation API this morning and it looks great! In particular I really like the install/uninstall/update operations, since as you noted this vastly simplifies client code for these simple use cases. It even gave me the heretical thought that we could defer turning the complicated IPlanner/IEngine stuff into real API in this release, but I'm not sure this is possible because there are several clients doing some more complicated things. Rather than expanding the operation API to cover all these fringe cases, it's probably best to keep this operation API simple and leave the complex stuff to the lower level API.

I have released some minor fixes directly in the branch, and opened bugs for a couple of other issues, but overall I really like it. I just wanted to send some positive feedback here because if you see the bug reports you only get the negative feedback...


Susan Franklin McCourt <susan_franklin@xxxxxxxxxx>
Sent by: p2-dev-bounces@xxxxxxxxxxx

11/19/2009 06:46 PM

Please respond to
P2 developer discussions <p2-dev@xxxxxxxxxxx>

P2 developer discussions <p2-dev@xxxxxxxxxxx>
[p2-dev] p2 UI API

I've finished the javadoc for the API coming out of the p2 UI.
It is released to the R3_6_api_cleanup branch.

The relevant bundles are

org.eclipse.equinox.p2.common (which may or may not continue to live as a separate bundle)

I'm reasonably happy with the shape of the API, but I've been working with it for a few weeks straight so I've lost all objectivity.
What's interesting to me about the shape is:

- the SDK UI is now a "good citizen" as far as using only API. I wasn't sure we could get there.
- it is still expected that clients will have to use internals if they want to reuse more fine-grained pieces of the UI (ie, the admin UI, PDE reusing some composites, etc.)
- the examples have been able to survive some significant class movement in core. For the most part, examples only need to know now about metadata and core. This is really good news.
- simple stuff is now simple. For example, checking for updates to the currently running profile is done like this:

UpdateOperation op = new UpdateOperation(provisioningSession);
IStatus result = op.resolveModal(monitor);
if (result.isOK()) {

Contrast that to the code here [1].

I invite anyone interested to review the code in the branch and open a bug with comments (or correct any errors you see...thanks John for spotting some already).


p2-dev mailing list