Reordering attributes


after entering some classes with attributes in the UML editor, I would like to re-order attributes of a class. Is there a way of doing this in the UML editor?



  • Hi Jörg,

    at the moment - unfortunately - not. The order of the attributes in the diagram editor directly reflects the order within the UML model. I've added a feature request for it.

    As a workaround you can cut and paste the attributes, because by pasting them they are added to the end of the attributes' compartment. Warning: this will change your code (if you're working with Round-Trip-Engineering), as additional source-code information like whitespaces are lost. Just try it out and invoke "Compare Generated Code" to see what I mean. So, this will only work for you if you're not working on an existing code base or - if so - if you're not intending to re-generate code afterwards.

    Best regards,
Sign In or Register to comment.