| Summary: | [Ecore Diagram] Restore Related Elements shouldn't apply layout | ||
|---|---|---|---|
| Product: | [Modeling] Ecoretools | Reporter: | Alain Picard <picard> |
| Component: | General | Assignee: | Project Inbox <ecore-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | adrianp.quatinus, cedric.brun, dave, info, matteo.risoldi |
| Version: | unspecified | Keywords: | helpwanted |
| Target Milestone: | 2.0.0 | ||
| Hardware: | PC | ||
| OS: | Windows Vista | ||
| Whiteboard: | |||
|
Description
Alain Picard
FYI, this is emf-cdo-SDK-2.0.0M4 I noticed this problem recently as well. It's very frustrating and there's no other way to get the hidden things back in view. :-( The "Arrange All" action is not acceptable in this case (indeed, we do not want to completely re-arrange existing elements that may have been manually located). The "Arrange Selection" action would be sufficient, but it should be applied on newly added nodes only. We need to change the RestoreRelatedLinksAction class (and particularly in the run() method) to fix this. To be complete, we should let the user choose whether he wants to automatically run the "Arrange" action or not : this could be done through a popup dialog "linked" with a preference. The first time the "Restore Related Elements" is launched, a dialog is prompted so that the user is able to choose whether he wants to "Arrange related elements" or not (This will be stored in a preference). A checkbox allows to prevent the dialog to appear again later (This is stored in a preference again). +1 to comment 3; the usefulness of diagrams is mostly for illustration purposes, and manual layout is generally required in order to get a nice looking readable diagram. After spending hours to layout a diagram nicely, I don't want to redo all the work in subsequent revisions just because Ecore can't automatically display all the modifications of the metamodel in the diagram and I'm obliged to restore related elements and it messes everything up! An option to completely avoid the rearrangement of the graph is a must! We (TIBCO) find the Ecore Tools incredibly useful and I commend the authors for their fine work. However, I wholeheartedly endorse these comments. It is soul destroying and infuriating to have spent a lot of time carefully laying out a diagram only to have the tool trash your work. This happens time and time again and has cost us many hours of wasted effort. A suggestion: separate the adjustments to existing graphical elements into a separate command so that UNDO can restore the original layout but with the 'related links' still in place. Then all that would be required is some judicious placement of the added elements. This is fixed with EcoreTools 2.0. Also note that "Restore Related Elements" is now labelled "Add Related Elements". |