Menu

#27 Changing .saveccm breaks .saveccm_diagram

open
nobody
3
2008-02-10
2007-12-25
No

If one reorders components / connections / delegations using the SaveCCM Model Editor (the one that opens .saveccm files), then the .saveccm_daigram (opened with the graphical editor) breaks.

Depending on the complexity of the model, this might leave artifacts that cannot be removed from the editor (the famous crossed circles), so the .saveccm_diagram has to be reinitiated.

See attached picture.

Discussion

  • Davor Slutej

    Davor Slutej - 2007-12-25

    This used to be organized, color coded and pretty... ;) Wish I had a decently fresh backup.

     
  • Davor Slutej

    Davor Slutej - 2007-12-25
    • priority: 5 --> 1
     
  • Davor Slutej

    Davor Slutej - 2008-02-10
    • priority: 1 --> 3
     
  • Davor Slutej

    Davor Slutej - 2008-02-10

    Logged In: YES
    user_id=803361
    Originator: YES

    Raising priority a bit - needed it again; while it's a >>>purely cosmetic<<< issue I would very much like to do this (re-arrange components in .saveccm file) without breaking the graphical layout.

    The reason I want to do it is because it also controls the order of components in the trace window of Uppaal Port plugin, and I would like to sort them in the order of triggering from left to right. :)

     
  • Mehrdad Saadatmand

    Logged In: YES
    user_id=1904984
    Originator: NO

    The problem is actually with the ID of elements. Their ID is set according to the order they are put on the form (1,2,3...) and thus they are serialized this way. When their order is changed in the .saveccm this breaks their serialization which is based on their IDs.

    Using UUIDs as the IDs, it works ok and the bug is fixed now. The new source code will be sent soon.

     
  • Anders Pettersson

    Logged In: YES
    user_id=225711
    Originator: NO

    Is this fix in the repository?

    Can this item be closed?

     
  • Mehrdad Saadatmand

    Logged In: YES
    user_id=1904984
    Originator: NO

    the fixed code will be uploaded to the SVN soon.

     

Log in to post a comment.

Auth0 Logo