Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334009 - Adding native DND ability to GraphViewer produces "Widget is disposed" exception
Summary: Adding native DND ability to GraphViewer produces "Widget is disposed" exception
Status: RESOLVED DUPLICATE of bug 200732
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy Zest (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-11 12:45 EST by Johan Schulz CLA
Modified: 2011-01-11 13:47 EST (History)
2 users (show)

See Also:


Attachments
Stacktrace when shutting down the workbench (7.59 KB, application/octet-stream)
2011-01-11 13:02 EST, Johan Schulz CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johan Schulz CLA 2011-01-11 12:45:47 EST
Build Identifier: 20100917-0705

I use the GraphViewer in an Eclipse view, if i add native DND support to the GraphViewer with 
 addDragSupport( DND.DROP_MOVE, new Transfer[] { TextTransfer.getInstance() }, myDragListener ))

It crashes if i shutdown the Workbench, DND itself works fine as long as the Workbench is running.

The checkWidget() call in Widget.removeListener throws an NPE for the display when the controlListener is removed in DragSource.onDispose same with DropTarget.

Regards
Johan

@see 
http://www.eclipse.org/forums/index.php?t=msg&goto=638209&S=ff54adcc25aa910bb032e24fcbd6ae9c







Reproducible: Always

Steps to Reproduce:
1. Create ViewPart with GraphViewer
2. Add DND support over addDragSupport (drag mode or transfer type doesn't matter)
3. Close the Workbench
Comment 1 Johan Schulz CLA 2011-01-11 13:02:27 EST
Created attachment 186535 [details]
Stacktrace when shutting down the workbench
Comment 2 Fabian Steeg CLA 2011-01-11 13:47:13 EST
Thanks for the report Johan.

I added a test to verify this issue has been fixed in HEAD by the recent fix for bug 200732 (see GraphViewerTests#testDisposalWithDragSource in org.eclipse.gef/test/org.eclipse.zest.tests).

*** This bug has been marked as a duplicate of bug 200732 ***