Replies: 16 comments
-
|
[Jonas Ebel] |
Beta Was this translation helpful? Give feedback.
-
|
This is the expected behavior. Freshly created diagrams do not get automatically layouted. However you can trigger a layout command via the 'Diagram' menu or by using the keyboard shortcut 'alt+L' |
Beta Was this translation helpful? Give feedback.
-
|
[Jonas Helming] @tortmayr : Thank you for the clarification? Is there a reason, why we do not auto layout diagrams, which have been auto generated? |
Beta Was this translation helpful? Give feedback.
-
|
Currently there is no way to distinguish between newly generated and existing diagrams on server side. We only could do auto-layout on open and this would revert all layout changes that the user did manually. |
Beta Was this translation helpful? Give feedback.
-
|
@tortmayr can't the user trigger a layout when creating the diagram? eg using the elk framework? |
Beta Was this translation helpful? Give feedback.
-
|
[Jonas Helming] I agree, either that, or we put in some marker to indicate that the diagram has been auto generated. I like Eugens suggestion more. Anyways, do I understand correctly, that there is not conceptional reason to not do this, but we need to just solve the issue to not override user specific layout? I would then consider this feature to be a huge improvement. |
Beta Was this translation helpful? Give feedback.
-
|
Yes that's correct. We can add the feature to the backlog. |
Beta Was this translation helpful? Give feedback.
-
|
[Jonas Helming] @jonas-ebel : Could you report that in the ecore-glsp repository as a feature request and post the link here? |
Beta Was this translation helpful? Give feedback.
-
|
[Jonas Ebel] @eneufeld can you give me a hint where to read about the elk framework - googling only gives me the ELK stack.. Is that what you meant? |
Beta Was this translation helpful? Give feedback.
-
|
@jonas-ebel Documentation about the Eclipse Layout Kernel (ELK) can be found here: https://www.eclipse.org/elk/. A concrete example of an layouter based on ELK can be found in the ecore-glsp server component (server/src/main/java/com/eclipsesource/glsp/ecore/EcoreLayoutEngine.java) |
Beta Was this translation helpful? Give feedback.
-
|
[Jonas Ebel] I added above into following issue to ecore-glsp |
Beta Was this translation helpful? Give feedback.
-
|
[Jonas Ebel] |
Beta Was this translation helpful? Give feedback.
-
|
[Jonas Helming] @jonas-ebel Is there a link missing? |
Beta Was this translation helpful? Give feedback.
-
|
[Jonas Ebel] You mean the link to the issue? |
Beta Was this translation helpful? Give feedback.
-
|
[Jonas Ebel] I was trying to specify the occurence of this issue in more detail. Follow up question would be if this newly layouted diagram should be save (i.e. written to enotation on the disk) on opening. |
Beta Was this translation helpful? Give feedback.
-
|
That sounds like a good solution for this problem. For the follow up question: I don't think its necessary to save after the autolayouting. If the diagram is closed without saving it will just be autolayouted again the next time (because the enotation file is still missing). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When I open an ecore file in the browser all elements are crumbled in the upper left corner. Is this right now an expected behaviour or shouldn't it be doing that?
original thread by Jonas Ebel
Beta Was this translation helpful? Give feedback.
All reactions