Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338945 - IllegalStateException in structure view when deleting a class
Summary: IllegalStateException in structure view when deleting a class
Status: VERIFIED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M6   Edit
Assignee: Karen Butzke CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-04 10:27 EST by Karen Butzke CLA
Modified: 2011-04-08 07:32 EDT (History)
1 user (show)

See Also:


Attachments
proposed patch - check isDisposed() (954 bytes, patch)
2011-03-04 10:34 EST, Karen Butzke CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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