| Summary: | [Preferences][ErrorHandling] SWTException: Unsupported or unrecognized format if icon miscoded in plugin.xml | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Kevin Hardman <nivek> |
| Component: | UI | Assignee: | Duong Nguyen <duongn> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | eclipse, Michael.Valenta, Tod_Creasey |
| Version: | 3.2 | Keywords: | helpwanted |
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Kevin Hardman
SWT is correctly throwing an exception when it cannot load an image file. The EditorSelectionDialog should not fail when this happens. Separate from this is the fact that the image file did not load but probably should have. Kevin, please enter another bug report against SWT with either the image file or a set of steps that we can use to recreate the problem. *** Bug 140669 has been marked as a duplicate of this bug. *** The following is what was changed to correct the bogus plugin.xml in the SQL editor plug-in. I would suggest obtaining the old org.eclipse.datagools.sqltools.sqleditor_0.9.0 jar or creating a plugin with bad xml as described to reproduce. From Bug 136482: Interesting... I had to work backward from the stack trace to trigger this same sort of effect in my environment. Turns out that DTP is indeed the culprit here, specifically the SQL editor. We'll get this fixed in a build for later this week, but, if you want to change it yourself, you can: 1. Unpack org.eclipse.datatools.sqltools.sqleditor_0.9.0.......jar 2. Edit the plugin.xml file for the following: Find the <extension point="org.eclipse.ui.editors"> near the top of the file, and location the line: icon="" change that to icon="icons/sql_editor.gif" repack, and replace in your plugins folder. On restarting Eclipse, the problem should go away. There are currently no plans to work on this however I would be happy to look over a contribution |