Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Eclipse Layout Kernel » Use elk based on Diagram (Type)
Use elk based on Diagram (Type) [message #1733774] Tue, 31 May 2016 15:55 Go to next message
Parsa Pourali is currently offline Parsa PouraliFriend
Messages: 210
Registered: February 2014
Senior Member
Hi Smile

I am currently using Sirius to create a graphical editor. I have three types of Diagrams: State Diagram, Feature Model and Feature Class diagrams. What I need to do is to use KIELER only for Feature Model diagram , and let Sirius default layout provider do layouting for the other State Diagram and Feature Class Diagrams.

Can I do it through some plugin extension points ?

Thanks,
Parsa
Re: Use elk based on Diagram (Type) [message #1733809 is a reply to message #1733774] Wed, 01 June 2016 06:34 Go to previous messageGo to next message
Miro Spönemann is currently offline Miro SpönemannFriend
Messages: 78
Registered: March 2015
Location: Kiel, Germany
Member

The Sirius default layout provider is the same used by GMF, which is the layer-based algorithm provided by Draw2d, right? That one is also available in KIELER / ELK, so you could actually use ELK for all of your diagram types and then choose a different algorithm for each type using the ELK configuration infrastructure.
Re: Use elk based on Diagram (Type) [message #1733865 is a reply to message #1733809] Wed, 01 June 2016 14:24 Go to previous messageGo to next message
Parsa Pourali is currently offline Parsa PouraliFriend
Messages: 210
Registered: February 2014
Senior Member
Hi Miro,

Actually, I need to completely disable KIELER and not using Draw2D algorithm option Sad the reason is that, KIELER automatically resizes nodes when I do layouting [1] !!! I found that if I statically config and set BorderSpacing to zero (0), then it will be fixed and nodes will not be resized ! This works great only in one of the diagrams, and I'm OK with it, but for the two other diagram types it messes up with other parts, So I' thinking of just using KIELER for one of the diagram types and ignore using it for the other two diagram types.

Thanks,
Parsa

[1] https://www.eclipse.org/forums/index.php/t/1076080/
Re: Use elk based on Diagram (Type) [message #1734641 is a reply to message #1733865] Fri, 10 June 2016 07:11 Go to previous message
Miro Spönemann is currently offline Miro SpönemannFriend
Messages: 78
Registered: March 2015
Location: Kiel, Germany
Member

You can control almost every aspect of the ELK layout through layout options. There's also an option for disabling automatic node resizing (id "org.eclipse.elk.nodeSize.options"). It's this flexibility why I would recommend to use ELK instead of the default layout provider.
Previous Topic:Node Resize when doing auto layout
Next Topic:Building custom layout managers for Graphiti
Goto Forum:
  


Current Time: Sat Nov 09 01:47:55 GMT 2024

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

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

Back to the top