Community
Participate
Working Groups
In DiagramEditorInternal's selectionChanged() method, it made assumptions about the business objects being EOjects when translating Diagram's selections into PE selections. This won't work if the BOs are not EMF based. Also the first line of the method: if (getSite().getPage().isPartVisible(this)) is problematic if the diagram editor is part of a multi-page editor. It needs to be if (getSite().getPage().isPartVisible(part))
You're right, there needs to be some special handling on non-EMF domain objects. That's missing currently. Unfortunatly the check for the visible part cannot be changed in the way you suggest: the passed part refers to the part that triggered the selection change and can be e.g. the outline or the project explorer if the selection come from there. We will check for alternatives, though. Michael
I added special handling for the selection of the pictogram elements of non-EMF domain objects and modified the check for the active editor in a way that it also allows updating the selection if the diagram editor is contained in a multi-page editor. Michael
If the diagram editor is contained inside a multi-page editor, in order to check whether the current page is the diagram editor, try the following code snippet: MultiPageEditorPart me = (MultiPageEditorPart)part; if (me.getSelectedPage() instanceof DiagramEditor) { // the current page of the multi-page editor is indeed the diagram editor // ........ }
Thanks for this hint, I added the check for the selected page. Michael
Set flag iplog.
Part of Graphiti Indigo 0.8.0