Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 345289

Summary: WindowBuilder causes Eclipse to hang while loading palette containing 3rd party Swing beans
Product: z_Archived Reporter: Tom Krauss <tom.krauss>
Component: WindowBuilderAssignee: Konstantin Scheglov <Konstantin.Scheglov>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: clayberg, hildefonz
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Test Project for reproducing the bug none

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. ***