Menu

#1 Diagram layout reverts to default on re-opening diagram

3.1
closed
None
Bug
All/Not-sure
2015-02-23
2015-02-18
Colin Snook
No

Often, when an existing diagram is reopened by clicking in the navigator, the existing diagram layout is not found and a new layout is started.

Closing and re-opening the diagram finds the old diagram layout.

Discussion

  • Colin Snook

    Colin Snook - 2015-02-18
    • summary: Diagram Layout not found on re-opening diagram --> Diagram layout reverts to default on re-opening diagram
     
  • Luis Diaz

    Luis Diaz - 2015-02-23

    Hello,

    There are some cases where a refined diagram lose the layout and the file is called #0 so there is not chance to get the old one.
    I can not specify in which scenarios it happens.

    Best regards

     
  • Colin Snook

    Colin Snook - 2015-02-23

    This is caused by EcoreUtil.equals sometimes returning false when the correct diagram element layout to open has in fact been found. Fixed by not using EcoreUtils for this test and instead compare 'reference' property which is a fully qualified id. commit b4170ce

     
  • Colin Snook

    Colin Snook - 2015-02-23
    • status: open --> closed
     

Log in to post a comment.