I've searched a while to fix a bug in my application. I missed a
selectionChanged() Event, after changing the selection programmatic via
the GraphViewer. After a little change all runs fine.
/**
* Changes the selection to the list of items
- *
+ * FIXED 08.09.2009 fireWidgetSelectedEvent() hinzugefügt, damit bei
setSelection
+ * auch ein SelectionChangedEvent ausgelöst wird!
* @param l
*/
public void setSelection(GraphItem[] nodes) {
@@ -323,6 +324,7 @@
if (nodes[i] != null && nodes[i] instanceof GraphItem) {
selectedItems.add(nodes[i]);
(nodes[i]).highlight();
+ fireWidgetSelectedEvent(nodes[i]);
}
}
}