| Summary: | Simple e4 app requires "addons" or NPE results | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | David Williams <david_williams> |
| Component: | UI | Assignee: | Platform-UI-Inbox <Platform-UI-Inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | emoffatt, ob1.eclipse, pwebster, remy.suen, tom.schindl |
| Version: | 4.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | stalebug | ||
|
Description
David Williams
You're certainly right, David. The fact that these "add ons" are actually requirements and not optional have certainly caused our users a lot of grief. You might be interested by the e4-dev thread [1] where I made suggestions how those "required" addons could be handled if the plugin that depends on it simply contributes a ModelProcessor. http://dev.eclipse.org/mhonarc/lists/e4-dev/msg04163.html We also have another bug open about this (it escapes me at the moment). The reason it is like this currently (as annoying as it is) is to avoid the org.eclipse.ui.ide problem. Right now any RCP app that pulls in ui.ide just because they would like some of the resource support classes gets a lot of things registered that they cannot undo. If we make them specify the addons, they can order them, customize them, etc, fixing a *long* standing complaint with our 3.x RCP story. But as you've noticed, it doesn't help the simple case. PW I don't know enough about it to comment on what's the "best" solution (or Tom's post referenced in comment #2) but my main concern was just throwing a NullPointerException if a "handler" is not there. Seems framework code should never (or, seldom) throw an NPE ... would be better to have some moderately descriptive message, such as "a required service was not found, indicating an issue with setup or installation of 'addOns'" (or, something better). An NPE makes the code look buggy and/or gives newbies like me a lot of doubt if I'm missing something essential in my dev. environment. See bug 357652 as well for a discussion on who creates what parts of the model when. But it's possible we need to provide some sort of hook somewhere: 1) if the addOns are available, do nothing 2) if these required addOns are not there, add them to the model in the default order we would specify. PW This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. If the bug is still relevant, please remove the "stalebug" whiteboard tag. |