Skip to content

Make it possible to have interpreted fields in elements style descriptions #5765

@florianbarbin

Description

@florianbarbin
  • I have checked that this feature has not yet been suggested by someone else.

Expected behavior

In Sirius Web, it is possible to provide custom nodes within a diagram. We may want to include interpreted fields in their style descriptions in the view model.

Currently, the ViewDiagramDescriptionConverter#convert method calls styleFactory.createNodeStyle(effectiveStyle, optionalEditingContextId, childrenLayoutStrategy) inside the styleProvider function.

The INodeStyleProvider interface could include a new createNodeStyle method that accepts both the interpreter and the variableManager from the StylesFactory. This would allow a custom node style provider to evaluate expressions dynamically at the time of node style rendering.

...

Cuttings backs

...

Potential side effects

...

Describe alternatives you've considered

...

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions