Skip to main content



      Home
Home » Modeling » Eclipse Layout Kernel » Deactivate ELK
Deactivate ELK [message #1790896] Tue, 19 June 2018 16:30 Go to next message
Eclipse UserFriend
Hi,

is there any way to deactivate ELK without having to uninstall it?

Best regards,
Amine
Re: Deactivate ELK [message #1790902 is a reply to message #1790896] Tue, 19 June 2018 19:17 Go to previous messageGo to next message
Eclipse UserFriend
Amine,

what do you mean by "deactivate", exactly?

Cheers,
Chris
Re: Deactivate ELK [message #1790909 is a reply to message #1790902] Wed, 20 June 2018 02:28 Go to previous messageGo to next message
Eclipse UserFriend
Hi Christoph,

When creating a new diagram, ELK will do automatic layouting on my diagram. Sometimes I don't want this to happen, and want to disable ELK. Is there any way?

Best regards,
Amine
Re: Deactivate ELK [message #1790920 is a reply to message #1790909] Wed, 20 June 2018 05:06 Go to previous messageGo to next message
Eclipse UserFriend
Amine,

that basically depends on the way the developer of the editor you're using has integrated ELK into their editor. ELK itself won't do anything unless triggered explicitly by the user or by the editor. Which editor is it you're using?

Cheers,
Chris
Re: Deactivate ELK [message #1790954 is a reply to message #1790920] Wed, 20 June 2018 10:26 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I'm trying to use it on my own Sirius editors. (https://github.com/kit-sdq/Modular-Reference-Structure-Editor)

I just had to install it and it automatically applies layouting to my diagrams. To prevent that I had to uninstall it, but that wouldn't be the best solution...

Best,
Amine
Re: Deactivate ELK [message #1792792 is a reply to message #1790896] Tue, 24 July 2018 03:41 Go to previous messageGo to next message
Eclipse UserFriend
We are facing a similar situation. A proposed solution has also been added.

When using Sirius with our custom layouts, we encountered an issue due to the presence of ELK plugins.

ELK Defines a generic laout provider which is contributed using the extension : org.eclipse.gmf.runtime.diagram.ui.layoutProviders
Plugin : org.eclipse.elk.conn.gmf

Problem 1 : The ELK Layout provider has a very general "provides" method :
/**
* {@inheritDoc}
*/
public boolean provides(final IOperation operation) {
return operation instanceof ILayoutNodeOperation;
}

Due to this, the layout provider is applicable for almost all use cases.
This is not an issue on its own, since a generic layout provider is expected to work this way.

However,

Problem 2 : The ELK Layout Provider is also contributed with the highest possible priority.
In the extension specification, the provider is assigned with the priority "Highest".

Due to the above two points, it is impossible to have a custom layout contributed when ELK Layout is included in the list of plugins.

Proposal :
Change the priority of the ELK Layout contribution to a lower value.
This will ensure that other custom layouts can be integrated along with ELK Layouts.
Re: Deactivate ELK [message #1792829 is a reply to message #1792792] Tue, 24 July 2018 10:10 Go to previous message
Eclipse UserFriend
Ah, I understand. Rakesh has opened a GitHub issue for that and a pull request is just short of being merged.
Previous Topic:Issue with Sirius Custom Layout and ELK Layout
Next Topic:Is there a standard ELK Graph View, that understands ELK Graph and knows how to show it?
Goto Forum:
  


Current Time: Tue May 13 10:11:44 EDT 2025

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

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

Back to the top