| Summary: | Using new Shell#getToolBar() leads to NPEs on startup | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Brian de Alwis <bsd> | ||||
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | eclipse.felipe, skovatch | ||||
| Version: | 3.7 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | Macintosh | ||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Please do not use this API, there is a change this API will most likely be removed. We are working on an alternative API. Actually, these are good patches for SWT_AWT. There are situations in the new Plugin2 on the Mac where the applet isn't attached to any NSWindow. I won't reopen the bug; I need a new one for that work. (In reply to comment #1) > Please do not use this API, there is a change this API will most likely be > removed. > > We are working on an alternative API. Is there a bug tracking this alternative API? (In reply to comment #3) > (In reply to comment #1) > > Please do not use this API, there is a change this API will most likely be > > removed. > > > > We are working on an alternative API. > > Is there a bug tracking this alternative API? https://bugs.eclipse.org/bugs/show_bug.cgi?id=222859#c135 [note: we are still playing with the idea] (In reply to comment #3) > (In reply to comment #1) > > Please do not use this API, there is a change this API will most likely be > > removed. > > > > We are working on an alternative API. > > Is there a bug tracking this alternative API? Also see bug 325795. That one talks about Aero Glass shells but it's related. |
Created attachment 189223 [details] Patch to work around NPEs on startup BuildId: Eclipse 3.7M5 I was experimenting with e4 to use the native shell toolbar on MacOS X. I'd get NPEs in Control#forceFocus(NSView) and ToolItem#setFocus() as view.window() would return null. The attached patches at least avoid the issue.