mdenet / educationplatform

Eclipse Public License 2.0
2 stars 3 forks source link

Add support for "renderaction" in buttons #101

Closed agarciadom closed 9 months ago

agarciadom commented 10 months ago

The epsilon_tool.json file in the example static.epsilon project includes a button for rendering the model/metamodel as a diagram, which uses a renderaction:

https://github.com/mdenet/platformtools/blob/main/static.epsilon/public/epsilon_tool.json#L286

I understand that the purpose of this button is to reproduce the behaviour in the Epsilon Playground, which has a similar button:

image

I cannot find any reference to renderaction in the platform's source code, however. The equivalent buttons show up in the UI, but they do not do anything when clicked.

Are there any plans to add this? I'll have to remove this button for the time being from my tutorial.

agarciadom commented 10 months ago

I have worked around this by using an actionfunction instead, and having a button action that sends the diagram to a different panel. See here for this example:

https://github.com/agarciadom/mdenet-mde-ci-tutorial/blob/730d21a5e29863ab12f02fc93c09a6947514ce97/state-machines.yml

I still think that supporting renderfunction would produce something more elegant.

yamtl commented 10 months ago

+1 for this feature request

At the moment I'm also using the workaround that Antonio is using for the YAMTL playground.

arturboronat commented 9 months ago

The pull request #134 provides a generalization of Model/Metamodel panels.

barnettwilliam commented 9 months ago

This is now achieved through the use of composite panels introduced in c8592781101c8afeb2e79b8cd3bf46477dcf00f1.