Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Using ELK layouts in a Sirius based product
Using ELK layouts in a Sirius based product [message #1853956] Mon, 25 July 2022 16:22 Go to next message
Avi Shaked is currently offline Avi ShakedFriend
Messages: 131
Registered: October 2019
Senior Member
Hi,

I have a Sirius based implementation that uses ELK layout (ELK Layered), when "arrange all" is selected from the diagram standard toolbox.

I am trying to create a standalone product distribution. Everything seems to work, except for the "arrange all." Strangely, when I used the same product definition to create a runtime environment, the "arrange all" does work with the expected layout.

Any tips on solving these?

The Sirius packages embedded in my product definitions appear below. Am I missing something?

I will appreciate your help,
Avi


<unit id="org.eclipse.sirius.specifier.feature.group" version="7.0.1.202205300817"/>
<unit id="org.eclipse.sirius.properties.feature.feature.group" version="7.0.1.202205300817"/>
<unit id="org.eclipse.sirius.runtime.ide.ui.feature.group" version="7.0.1.202205300817"/>
<unit id="org.eclipse.sirius.runtime.feature.group" version="7.0.1.202205300817"/>
<unit id="org.eclipse.sirius.runtime.ide.ui.acceleo.feature.group" version="7.0.1.202205300817"/>
<unit id="org.eclipse.acceleo.query.feature.group" version="7.0.0.202102190929"/>
<unit id="org.eclipse.sirius.diagram.elk.feature.feature.group" version="7.0.1.202205300817"/>
<unit id="org.eclipse.elk.feature.feature.group" version="0.7.1"/>
<unit id="org.eclipse.elk.ui.feature.feature.group" version="0.7.1"/>
<unit id="org.eclipse.acceleo.ui.interpreter.feature.group" version="3.7.11.202102190929"/>
<unit id="org.eclipse.elk.algorithms.feature.feature.group" version="0.7.1"/>
<unit id="org.eclipse.elk.graphviz.feature.feature.group" version="0.7.1"/>
Re: Using ELK layouts in a Sirius based product [message #1853973 is a reply to message #1853956] Tue, 26 July 2022 12:43 Go to previous messageGo to next message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 300
Registered: July 2009
Senior Member
Hi,
No real idea. This list seems OK.

Maybe you can start by debugging method org.eclipse.sirius.diagram.elk.ELKAlgorithmProvider.getCustomLayoutAlgorithms(), in field algorithmData you should have all "ELK layout" including "org.eclipse.elk.layered". If it is not present, it confirms that the ELK layout is not visible by Sirius (so probably a dependency problem).

If the algo is visible in the previous debugging entry point, another interesting entry is org.eclipse.sirius.diagram.elk.GmfLayoutEditPolicy.getCommand(Request),

Regards,

Laurent


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Using ELK layouts in a Sirius based product [message #1853980 is a reply to message #1853973] Tue, 26 July 2022 17:12 Go to previous message
Avi Shaked is currently offline Avi ShakedFriend
Messages: 131
Registered: October 2019
Senior Member
Thanks Laurent.

It seems that I forgot (or did not know I needed to) add the features into the product's "contents" definitions. I did it and the issue was solved.
Previous Topic:Sirius web front end
Next Topic:Setting somethings in semantic model during validation
Goto Forum:
  


Current Time: Tue Apr 23 11:47:45 GMT 2024

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

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

Back to the top