|
Re: auto-completion and global variables in EGL/EGX? [message #1766589 is a reply to message #1766587] |
Fri, 23 June 2017 10:56 |
|
Hi Jonas,
It's nice to hear that you are having a pleasant experience with EGL so far!
> However, I noticed that there is no auto-completion in an .egl file for elements of my metamodel. Is there a secret way to magically add this (like the --page stuff in ATL)?
Epsilon languages are optionally and dynamically typed so there's no support for metamodel-driven code-completion I'm afraid.
> Is there a way to define global variables which are accessable in ex1.egl and ex2.egl?
You can define such variables in EGX's pre {} block and then use the "parameters" feature of EGX rules to pass them on to templates. See [1] for an example.
Cheers,
Dimitris
[1] https://www.eclipse.org/epsilon/doc/articles/egx-parameters/
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01971 seconds