Community
Participate
Working Groups
The idea is to be able using AQL from Sirius to view in the console the value of a variable. Something like myvar.trace() would be really cool.
New Gerrit change created: https://git.eclipse.org/r/56414
https://git.eclipse.org/r/56414 This patch show the metamodels and services in the environment and also the current receiver value. But since variable are not in the environment they can't be printed... To do so we have to make variables part of the environment... not sure it's a good idea.
(In reply to Yvan Lussaud from comment #2) > https://git.eclipse.org/r/56414 > > This patch show the metamodels and services in the environment and also the > current receiver value. But since variable are not in the environment they > can't be printed... To do so we have to make variables part of the > environment... not sure it's a good idea. That could be easier to add a specific Service at the Sirius level which would gather the variable based on the current session.
(In reply to Cedric Brun from comment #3) > (In reply to Yvan Lussaud from comment #2) > > https://git.eclipse.org/r/56414 > > > > This patch show the metamodels and services in the environment and also the > > current receiver value. But since variable are not in the environment they > > can't be printed... To do so we have to make variables part of the > > environment... not sure it's a good idea. > > That could be easier to add a specific Service at the Sirius level which > would gather the variable based on the current session. Moving the bug to Sirius. On the Sirius side we already have PrintInterpreterVariablesAction, which is language-agnostic but only available as an External Java Action, which is cumbersome to invoke. It should be converted into an equivalent service into org.eclipse.sirius.common.tools.api.interpreter.StandardServices, which is supposed to hold this kind of "standard services" for Sirius.
Gerrit change https://git.eclipse.org/r/56414 was merged to [master]. Commit: http://git.eclipse.org/c/acceleo/org.eclipse.acceleo.git/commit/?id=7a3fb57c0344e7ff6a9ff13ca0d95610ad6a766b