Reorder properties in class? [message #518009] |
Tue, 02 March 2010 13:36  |
Eclipse User |
|
|
|
Maybe I'm missing something, but I can't find any way to change the order in which class properties appear in the diagram. Is there some keyboard shortcut I am overlooking, or is it really impossible to reorder the properties without deleting and recreating them in the desired order? TIA for any help.
-- Nick
|
|
|
|
|
|
|
Re: Reorder properties in class? [message #519983 is a reply to message #519913] |
Wed, 10 March 2010 12:14   |
Eclipse User |
|
|
|
Quote: | Nick,
I remember there being discussions in GMF about whether the outline view should be editable; you'd be able to use drag and drop to reorder property in that case.
|
This didn't work for me in Galileo, I'll have to check out the dev version and see if it made it in... You can drag properties between classes but you can't move them around within one class.
Quote: | Perhaps the common navigator framework's ability
to edit in the navigator is supported. If not, the very basic UML tree editor does support reordering via drag and drop so maybe that will help in a pinch.
|
This is what I've been using, but the process isn't straightforward. It has a few problems...
- I can't drag an attribute next to one of its siblings, only inside of a sibling.
- If I drag an attribute onto its parent, it will duplicate itself, with the new attribute appearing at the bottom of the list (bug?).
I can reorder the attributes by moving them to another class and then moving them back. This will put them at the end of the list. This will not update the diagram, though, so then I need to delete the class from the diagram and resynchronize. The attributes will now appear where I want them...
Thanks for the help...
|
|
|
|
|
Re: Reorder properties in class? [message #625539 is a reply to message #625537] |
Wed, 10 March 2010 12:14  |
Eclipse User |
|
|
|
Quote:
> Nick,
>
> I remember there being discussions in GMF about whether the outline view should be editable; you'd be able to use drag and drop to reorder property in that case.
This didn't work for me in Galileo, I'll have to check out the dev version and see if it made it in... You can drag properties between classes but you can't move them around within one class.
Quote:
> Perhaps the common navigator framework's ability
> to edit in the navigator is supported. If not, the very basic UML tree editor does support reordering via drag and drop so maybe that will help in a pinch.
This is what I've been using, but the process isn't straightforward. It has a few problems...
- I can't drag an attribute next to one of its siblings, only inside of a sibling.
- If I drag an attribute onto its parent, it will duplicate itself, with the new attribute appearing at the bottom of the list (bug?).
I can reorder the attributes by moving them to another class and then moving them back. This will put them at the end of the list. This will not update the diagram, though, so then I need to delete the class from the diagram and resynchronize. The attributes will now appear where I want them...
Thanks for the help...
|
|
|
Powered by
FUDForum. Page generated in 0.04664 seconds