Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345289 - WindowBuilder causes Eclipse to hang while loading palette containing 3rd party Swing beans
Summary: WindowBuilder causes Eclipse to hang while loading palette containing 3rd par...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: WindowBuilder (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Konstantin Scheglov CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 346060 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-05-10 11:58 EDT by Tom Krauss CLA
Modified: 2021-06-04 16:44 EDT (History)
2 users (show)

See Also:


Attachments
Test Project for reproducing the bug (12.83 KB, application/zip)
2011-05-11 11:06 EDT, Tom Krauss CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Krauss CLA 2011-05-10 11:58:28 EDT
Build Identifier: 3.6.2

When one tries to open Window Builder on a Swing user interface containing 3rd party beans (custom beaninfos and custom images), Eclipse will hang due to an endless loop in method org.eclipse.wb.internal.core.utils.ui.ImageUtils.convertToSWT, which tries to convert the gif file for the bean to an SWT image.

Happens with WindowBuilder Plugin version 0.9.0.r36x201105061148.


Reproducible: Always

Steps to Reproduce:
1. Open the WindowBuilder Designer on a Swing user interface (e.g. empty JDialog)
2. Open "Import Jar Archive" from the WindowBuilder Item Palette and import a Jar archive containing some custom beans with custom BeanInfo images (I can provide a sample Jar if you need one)
3. Select one of the beans to add it to the palette. 
-> Eclipse hangs forever.
Comment 1 Konstantin Scheglov CLA 2011-05-11 09:25:05 EDT
Yes, please attach sample jar.
Comment 2 Tom Krauss CLA 2011-05-11 11:06:15 EDT
Created attachment 195370 [details]
Test Project for reproducing the bug

Here is what to do with the attachment:
- unzip and import the sample project into Eclipse
- open the class de.gebit.sample.Sample Dialog in Window Builder
- goto the palette, open popup menu to "Add Component..."
- in the dialog, that comes up, choose class de.gebit.beans.GImagePainter
-> Eclipse hangs
Comment 3 Konstantin Scheglov CLA 2011-05-11 14:43:11 EDT
Fixed in trunk, will be in next build.
Comment 4 Konstantin Scheglov CLA 2011-05-17 16:21:55 EDT
*** Bug 346060 has been marked as a duplicate of this bug. ***