Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Table type layout on the main graphical area(The default layout on the main graphical area which look/functions like a table)
Table type layout on the main graphical area [message #1803991] Fri, 15 March 2019 00:50 Go to next message
Jai M is currently offline Jai MFriend
Messages: 4
Registered: February 2019
Junior Member
Hello Forum,

We are designing a graphical editor using Sirius. It is like a workflow editor. When the editor is started, it needs to show a custom layout which looks and functions like a table. The use shall be
- allowed to place element in the empty cells.
- if the cell is not empty, user shall be notified
- able to add rows and columns as needed
- the height and width of the rows/columns shall be adjusted to fit the size of the largest element/s on diagram
(Attachment: Pictorial representation)

Our requirement is similar to box layout available in the NLK. When I read the document, I get a feeling that these algorithms are applied on the diagram after all the elements are created and they would change the elements positions. We need something in which user decides, which element will be in which cell. And then we shall be able to programmatically know which element is in which cell for processing workflows.

Is this something possible by using available layouts like Box layout or the like?
Are there any other possible methods to do this?

Appreciate any directions and thoughts from the Forum.

Thanks!
  • Attachment: Layout.PNG
    (Size: 15.78KB, Downloaded 62 times)
Re: Table type layout on the main graphical area [message #1804105 is a reply to message #1803991] Mon, 18 March 2019 14:02 Go to previous message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 572
Registered: May 2011
Senior Member
Hello,

I think you should be able to have this kind of layouting using two levels of container mappings thanks to their compartment definitions (see the compartment part in the container mapping doc [1]). Have a container mapping with a "children presentation" sets to Horizontal Stack and then under this container mapping you add a second one with a children presentation as Vertical Stack (depending on your metamodel it is possible that it makes more sens to have it the other way around). With this structure and that one of your need is to be able to add row and lines as needed, I think you should have the rows and lines concept in your metamodel.
You may need to add some custom layouting [2] to tweek it a little bit, but this should do the trick.

Regards,
Steve

[1] https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#containers
[2] https://www.eclipse.org/sirius/doc/developer/extensions-provide_custom-arrange-all.html


Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Sirius on the Web
Next Topic:How to close palette drawer on opening representation
Goto Forum:
  


Current Time: Sun May 05 10:24:23 GMT 2024

Powered by FUDForum. Page generated in 0.03699 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top