file Ability to reorder attributes and methods in a class

7 years 10 months ago #265 by dimfa
On a class diagram there is no easy way to reorder attributes or methods in a class.
Drug and drop does not work.
The only way I found now is to move attributes to another class and add them back in the desired order.

Please Log in or Create an account to join the conversation.

7 years 10 months ago #276 by fpo
Indeed there are no other way at the moment than to mask the Attributes/Operations and unmask them again in the wanted order (moving the attributes/operations to another class and back does pretty much the same job in the end).
I have created an evolution request for this in the bug tracker, as this is an ergonomy issue, but I cannot tell you when it will be investigated.
Here is the link to the evolution request

Please Log in or Create an account to join the conversation.

7 months 2 weeks ago #5601 by henryoktober
Although it is something decorative it would be very nice to be able to reorder the attributes and operations. It should be something as easy as drag and drop. The users would greatly appreciate any effort in this regard. Thanks.

Please Log in or Create an account to join the conversation.

7 months 2 weeks ago - 7 months 2 weeks ago #5603 by osl
Hi,

You can sort the attributes / operations the way you want within a class:

1. In your diagram, select your class
2. Open the Symbol view:

3. Change the value of the 'Automatic content' property:

4. Reorder the class attributes in the Modeler browser (select an attribute, then move it up (Ctrl+U) or down (Ctrl+D)
5. Once you are satisfied with the way your attributes are sorted, select them all, and unmask them in the diagram by drag&dropping them:


BR

Go pro
Attachments:
The following user(s) said Thank You: henryoktober

Please Log in or Create an account to join the conversation.

7 months 2 weeks ago #5608 by henryoktober
Thank you so much osl. That worked beautifully!

Please Log in or Create an account to join the conversation.

Moderators: cdeebr
Time to create page: 0.343 seconds
^ Back to Top