Bug 157517 - [JFace] ImageDescriptor.createResource eats SWT exceptions
Summary: [JFace] ImageDescriptor.createResource eats SWT exceptions
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P5 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-15 15:24 EDT by Boris Bokowski CLA
Modified: 2019-09-06 15:37 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Bokowski CLA 2006-09-15 15:24:37 EDT
Because ImageDescriptor.createResource calls createImage, which is spec'd to return null if the image cannot be loaded, we can only throw an unspecific exception in error cases (such as the one in bug 157478).

We should refactor this so that we can throw an exception that wraps the SWT exception, e.g. by creating a private method internalCreateImage that is called by both createResource and createImage.
Comment 1 Susan McCourt CLA 2009-07-09 17:18:23 EDT
As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009
Comment 2 Eclipse Webmaster CLA 2019-09-06 15:37:07 EDT
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.