Issue with Sirius Custom Layout and ELK Layout [message #1792793] |
Tue, 24 July 2018 07:43  |
Eclipse User |
|
|
|
Hello ,
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.
Regards,
Rakesh
[Updated on: Tue, 24 July 2018 07:44] by Moderator Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06586 seconds