| Summary: | NPE in BindingCopies.isUserBinding | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] e4 | Reporter: | Thomas Schindl <tom.schindl> | ||||
| Component: | UI | Assignee: | Paul Webster <pwebster> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | jessev, pwebster, remy.suen | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 4.1 M7 | ||||||
| Hardware: | PC | ||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Thomas Schindl
... and because we are at it. This class is violating one of the highest design principles we've defined: Singleons and statics are evil! If there should be only one of this BindingCopies in a running instance I think we should push the thing into the IEclipseContext from the MApplication but we need to get rid of those statics! Tom, this was a temporary class to get Keys preference page started.
Jesse, I'll try and look at your patch tonight, but we have to get this bug fixed asap ... Please remove the init() calls from within head, and replace them with something like:
list getUserBindings() {
if (userBindings==null) {
userBindings = new list;
}
return userBindings;
}
PW
Created attachment 191591 [details]
Avoid the init call v01
Released to HEAD Paul, is there a defect to remove this class completely or to get rid of the statics in it? To remove it completely: bug 335985 PW BindingCopies was temporary...and yes I know, it's a VERY bad design decision. It's been completely removed in https://bugs.eclipse.org/bugs/show_bug.cgi?id=335985 but as it stands right now, only the default scheme will work. |