Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 326353

Summary: "same file for diagram and model" not enforced?
Product: [Modeling] TMF Reporter: Yijun Yu <y.yu>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: jan
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Yijun Yu CLA 2010-09-27 16:48:47 EDT
Build Identifier: 20100617-1415

Edges not saved to the GMF diagram sometimes, creating problems for loading the diagram.


Reproducible: Always

Steps to Reproduce:
1. initially the diagram created from the xtext entities model is almost empty, without any detailed xml elements of Nodes or Edges. 
2. After dragging nodes in the GMF editor, and saving the model (which does not change the semantic model), the diagram would include all the Nodes, but not any of the Edges.
3. Then close the model and reopen it, sometimes Connectors are not shown until moving a node to refresh it. 
4. Running the layout operation then saving the GMF diagram, all the edges are created that seems to solves the problem as the persistent Diagram will always record the edges from now on.
Comment 1 Jan Koehnlein CLA 2010-09-28 05:17:34 EDT
Same file for diagram and model cannot be supported, as there is no Xtext grammar for the GMF node model. Thus, the diagram information cannot be persisted. 

It could work only for so called purely canonical diagrams, i.e. diagrams whose graphical information can be completely restored from the semantic model using the default mappings. There have been lots of problems with GMF in this area recently, see e.g. #314670, so I am pretty certain this is a GMF issue. 

Please try again with a plain GMF solution and reopen if this tourns out to be an Xtext issue.
Comment 2 Yijun Yu CLA 2010-09-28 11:56:50 EDT
(In reply to comment #1)
> Same file for diagram and model cannot be supported, as there is no Xtext
> grammar for the GMF node model. Thus, the diagram information cannot be
> persisted. 

True, the title of my report was misleading. Initially I thought it was the reason, but
now I believe it is due to something else.
 
> It could work only for so called purely canonical diagrams, i.e. diagrams whose
> graphical information can be completely restored from the semantic model using
> the default mappings. There have been lots of problems with GMF in this area
> recently, see e.g. #314670, so I am pretty certain this is a GMF issue. 

Seems the bug #314670 is not yet resolved :-(

> Please try again with a plain GMF solution and reopen if this tourns out to be
> an Xtext issue.
Comment 3 Karsten Thoms CLA 2017-09-19 17:39:01 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 4 Karsten Thoms CLA 2017-09-19 17:50:17 EDT
Closing all bugs that were set to RESOLVED before Neon.0