I have a gmf editor for which I have added a custom
ContainerNodeEditPolicy to the DiagramEditPart. In my custom
ContainerNodeEditPolicy I intercept CreateConnectionRequest request
with ContainerNodeEditPolicy.getPromptForConnectionAndEndCommand to
return a custom PromptForConnectionAndEndCommand which provide my custom
PopupMenu. One menu of this PopupMenu permits user to select a file
which will be a EAttribute value of a newly added model's element
connected to source model's element under sourceEditPart of used
ConnectionHandle.
When user has choosen his file, I use CreateViewAndElementRequest
request with location of ConnectionHandle's Popup location and get
corresponding command on my DiagramEditPart and execute it.
Then I use SetRequest to set values to previous created model's
element's EAttributes.
To finish I use CreateRelationshipRequest to add a EReference instance
between source model's element under the sourceEditPart of the
ConnectionHandle and previously created model's element.
The view of previously created model's element is visible but not his
EAttribute's values nor the Connection view, they are visible when I
save diagram, close editor and reopen diagram.
How can I do to see EAttribute and EReference related views.
DiagramEditPart.refresh() operation doesn't works.