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

Bug 338945

Summary: IllegalStateException in structure view when deleting a class
Product: [WebTools] Dali JPA Tools Reporter: Karen Butzke <karenfbutzke>
Component: GeneralAssignee: Karen Butzke <karenfbutzke>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jolene.moffitt
Version: 3.0   
Target Milestone: 3.0 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
proposed patch - check isDisposed() none

Description Karen Butzke CLA 2011-03-04 10:27:47 EST
Open a JPA project, open one Entity in the editor, and open the JPA Structure view. Now delete the java class and the following exception occurs. This does not appear to affect the integrity of the structure view going forward. Just an exception in the error log.

Caused by: java.lang.IllegalStateException: Need an underlying widget to be able to set the input.(Has the widget been disposed?)
	at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1660)
	at org.eclipse.jpt.jpa.ui.internal.views.structure.JpaStructurePage$3.run(JpaStructurePage.java:228)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134
Comment 1 Karen Butzke CLA 2011-03-04 10:34:54 EST
Created attachment 190396 [details]
proposed patch - check isDisposed()
Comment 2 Karen Butzke CLA 2011-03-08 10:41:41 EST
fixed for M6
Comment 3 Jolene Moffitt CLA 2011-04-08 07:32:30 EDT
Verified in Build I-3.3.0-20110331154142

Verified no exception appears when you delete a class that appears in the structure view. See the link to view test steps for verification. 
http://wiki.eclipse.org/Dali_3.0_M6