The issue is still not working.
The Selection seams un-completed when I select the EditPart
programmatically. It`s not the same as when I select a EditPart with a
Mouse-Click.
I debugged it a lot of times and I found out the following:
Both times (when I select it programmatically or when I select it with a
MouseClick) fireSelectionChanged() and flushSelectionEvents() are called
in DiagramGraphicalViewer. But when I select it programmativcally the
Variable "array" in flushSelectionEvents() has only 3 Entries, when I
select it with a MouseClick it has 81 Entries.
And one of the missing entries must cause the call of
org.eclipse.jface.viewers.ContentViewer.setInput(), which sets the input
for the Property-Tabs.
So when I select the EditPart programmatically this setInput()-method
isn`t called, and when the next time a PropertyTab asks for the input,
it gets the old input.
That all leads to the conclusion, that I select the EditPart wrongly
when I do it in my code. (you see my code and how I select the EditPart
in my former mail)
So how can I select it right?
Thanks for any ideas!
Best wishes
Julia
PS: The other issue, that the Connections disappear on the first
EditPart-Change, is still not working. I debugged it, too, and the only
thing I can see, is, that on the first change there are calls misssing.
All the other times everything is called perfectly, but on the first
time some events aren`t thrown. This looks to me like this is a GMF-Bug.