| Summary: | UI is being called from another thread. | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Eduardo Pereira <eduardo_pereira> |
| Component: | Search | Assignee: | Platform-Search-Inbox <platform-search-inbox> |
| Status: | RESOLVED WORKSFORME | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jeffmcaffer |
| Version: | 2.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Eduardo Pereira
The problem is that the workbench UI is being called from another thread. Unless stated otherwise, the UI framework should not be called from another thread. This is a change in the UI (2.1 stream) that exposed this bug. Not sure if this is a bug in the search or in SDT. Tested against build I20030129 I get a NPE as expected. Please reopen if you see this in I20030129 or later and add steps to reproduce. Regarding your comments: API for IViewPart.findView is: /** * Returns the view in this page with the specified id. There is at most one * view in the page with the specified id. * * @param viewId the id of the view extension to use * @return the view, or <code>null</code> if none is found */ public IViewPart findView(String viewId); Therefore as a client I expect either a result or null - everything else is not ok. If Platform UI expects this to be called in a specific thread then this has to be specified and a corresponding exception should be thrown - like SWT does. |