Community
Participate
Working Groups
Created attachment 89119 [details] patch file based on Graph (cvs version 1.35) scenario: a GraphNode is selected and is getting disposed. During the disposal the GraphNode is not removed from the selectedItems-List within the Graph class. If now a redraw happend there will be a SWTException: org.eclipse.swt.SWTException: Widget is disposed at org.eclipse.swt.SWT.error(SWT.java:3374) at org.eclipse.swt.SWT.error(SWT.java:3297) at org.eclipse.swt.SWT.error(SWT.java:3268) at org.eclipse.swt.widgets.Widget.error(Widget.java:435) at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:330) at org.eclipse.swt.widgets.Widget.getStyle(Widget.java:601) at org.eclipse.mylyn.zest.core.widgets.GraphNode.getStyle(GraphNode.java:686) at org.eclipse.mylyn.zest.core.widgets.GraphItem.checkStyle(GraphItem.java:112) at org.eclipse.mylyn.zest.core.widgets.GraphNode.updateFigureForModel(GraphNode.java:774) at org.eclipse.mylyn.zest.core.widgets.GraphNode.unhighlight(GraphNode.java:488) at org.eclipse.mylyn.zest.core.widgets.Graph.clearSelection(Graph.java:702) at org.eclipse.mylyn.zest.core.widgets.Graph.access$3(Graph.java:697) at org.eclipse.mylyn.zest.core.widgets.Graph$DragSupport.mousePressed(Graph.java:636) at org.eclipse.draw2d.Figure.handleMousePressed(Figure.java:873)
Moving to Zest's new home in GEF.
Duplicate of Bug 203420.
Is something wrong with the patch? This bug still is present in 3.5.2 (i.e. zest 1.1.0).
The patch doesn't apply anymore, but that's ok. It's pretty straight forward. This bug just got missed, sorry about that. I've released the fix for RC1.
*** Bug 203420 has been marked as a duplicate of this bug. ***
Thanks for fixing the bug. I tried the new release and the exception does not occur anymore. However, I think that the fix is not complete yet. When the graph is used within a GraphViewer then the GraphViewer does not raise a SelectionChanged event if a selected node has been deleted. It only sends selection change events on mouse selections. (I tried to manually set the selection on the GraphViewer but that does not work either, this seems to be another bug). Should I reopen this bug or is a new bug report more appropriate?
Comment on attachment 89119 [details] patch file based on Graph (cvs version 1.35) It seems this patch has been applied (with modifications), thus adding iplog flag.
Comment on attachment 89119 [details] patch file based on Graph (cvs version 1.35) Removing iplog+ flag again, due to Ian's comment #4.