What happens after DiagramDialectUIServices.openEditor? [message #1834440] |
Tue, 10 November 2020 07:18  |
Eclipse User |
|
|
|
Hi,
I am trying to create a element's representation programmatically by using the api org.eclipse.sirius.business.api.dialect.DialectManager.createRepresentation and DiagramDialectUIServices.openEditor. The api works fine and it indeed creates a diagram representation and opens it, but there's one thing strange. After I executed these methods and calls a session.save to save the current session, the opened diagram was momently saved, but after half or one second the diagram editor becomes dirty again, and a star sign(which indicates the diagram is not properly saved) appears on the editor page label.
I really wonder what happed after I called DiagramDialectUIServices.openEditor, why the editor was saved but turn dirty again? Who modified the diagram? Is there any way to make the diagram representation properly saved just after it was created and opened? It's kind of important to my application. Any hint or advice will helps.
Thanks for your help very much.
Yufei Zhou
[Updated on: Tue, 10 November 2020 07:31] by Moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06729 seconds