Home » Modeling » Epsilon » [Epsilon] Not F.A.Q.
[Epsilon] Not F.A.Q. [message #698205] |
Tue, 19 July 2011 01:53 |
Silvia Messages: 12 Registered: March 2011 |
Junior Member |
|
|
Hi Dimitris,
here the questions repost.
A) Help Questions:
- How can an EOL module import external modules from installed plugins in the the eclipse target platform or from other open projects?
- How can registered metamodels in the Metemodel Registry of Epsilon be unregistered?
- How can I use the debugger in the SVN?
B) More About Epsilon Plugins - Questions
- Is it possible to parametrize EVL messages with what is found in the check part. I mean to have global variables in a rule. For example if I count something, I want to inform the number to the user but I don't want to repeat the query in the message part.
- Is it possible to include cases in the EVL check parts, I mean include if statements in order not to repeat EVL instructions in multiple rules.
- Is it possible to use ModelLink of two models conforming to different metamodels?
- Does ModelLink defines eclipse extension points to link n-models?
- Is it possible to include custom annotations to Epsilon languages in different levels (i.e. context, rule definition, named block, message).
C) Epsilon with Xtext, Xpand Questions:
- Is it possible to override an EOL module? Or is it possible to override an EOL fragment (part of the body or of an operation)? Like in Xpand <<AROUND>>.
- Have you tried to use EVL to validate a model written with an Xtext-DSL, or do you know about any try on this way?
- Have you tried to create an extension language of EOL with Xtext in order to have the benefits from both of them? Or do you know about any try on this?
Thanks.
Silvia
[Updated on: Tue, 19 July 2011 02:14] Report message to a moderator
|
|
|
Re: [Epsilon] Not F.A.Q. [message #698384 is a reply to message #698205] |
Tue, 19 July 2011 11:42 |
|
Hi Silvia,
Please see comments below.
> How can an EOL module import external modules from installed plugins in the the eclipse target platform or from other open projects?
You can use platform:/plugin/com.x.y/... URIs for the former, and platform:/resource/... or relative paths for the latter.
> How can registered metamodels in the Metemodel Registry of Epsilon be unregistered?
This is not possible at the minute. Could you please file an enhancement request and we'll fix this asap?
> How can I use the debugger in the SVN?
You need to set breakpoints in your E*L programs and then instead of launching using the Run button, do so using the Debug button. We plan to create screencasts and an article that discusses the debugger shortly so this should hopefully answer any more questions you may have on this.
> Is it possible to parametrize EVL messages with what is found in the check part. I mean to have global variables in a rule. For example if I count something, I want to inform the number to the user but I don't want to repeat the query in the message part.
Yes, variables in the check part are also available in the message part
> Is it possible to include cases in the EVL check parts, I mean include if statements in order not to repeat EVL instructions in multiple rules.
Yes. Instead of check: <condition> you can use check { statement; statement; return boolean; } for more complicated code. I believe this is discussed in the EVL chapter of the book but I need to double-check this.
> Is it possible to use ModelLink of two models conforming to different metamodels?
Yes.
> Does ModelLink defines eclipse extension points to link n-models?
ModeLink can link n models. I'm not sure I understand how eclipse extension points relate to this.
> Is it possible to include custom annotations to Epsilon languages in different levels (i.e. context, rule definition, named block, message)
Epsilon supports annotations in some constructs (e.g. operations in EOL, rules in ETL/EML/ECL, constraints in EVL) but not in others (e.g. check part of an EVL constraint). Could you please file an enhancement request for this one too?
> Is it possible to override an EOL module? Or is it possible to override an EOL fragment (part of the body or of an operation)? Like in Xpand <<AROUND>>.
You can override an EOL operation with another operation with the same name/parameters
> Have you tried to use EVL to validate a model written with an Xtext-DSL, or do you know about any try on this way?
Yes. The process is very similar to this one http://eclipse.org/gmt/epsilon/doc/articles/evl-gmf-integration/ as Xtext reuses the EMF validation framework.
> Have you tried to create an extension language of EOL with Xtext in order to have the benefits from both of them? Or do you know about any try on this?
We do have an internal project running on redefining the EOL parser using Xtext but I wouldn't expect any results to be made publicly available for at least 6 months.
Cheers,
Dimitris
|
|
| | | | | |
Re: [Epsilon] Not F.A.Q. [message #698820 is a reply to message #698684] |
Wed, 20 July 2011 09:59 |
|
Hi Silvia,
Please see comments below
>@Dimitris: I will open the enhancement issues.
Thanks!
>About the ModelLink question B.4: If ModelLink can be used to link more than 2 models (viz.n-models) at the same time, how do I access to this? I mean, I saw it has three panels (p1:model1, p2:model2, p3:link-model). >Perhaps I'm missing something.
Each panel can host multiple models (you can add models to panels through the configuration dialog)
>About question C.2.: do I need the model described with the Xtext-DSL to be in XMI format or should it work with the textual format?
It should work with the textual format too.
Cheers,
Dimitris
|
|
| |
Re: [Epsilon] Not F.A.Q. [message #699162 is a reply to message #698850] |
Thu, 21 July 2011 01:23 |
Silvia Messages: 12 Registered: March 2011 |
Junior Member |
|
|
Hi Steffen,
It seems the svn path in sourceforge changed to: https://epsilonlabs.svn.sourceforge.net/svnroot/epsilonlabs
I downloaded and successfully installed from there. The ant tasks were installed. But I have the following error:
\EJB3Generation\workflow\build.xml:23: Problem: failed to create task or type epsilon.eglRegister
Cause: Could not load a dependent class EglTask
This class may be in a separate JAR that is not installed.
Action: Determine what extra JAR files are needed, and place them in one of:
-<ECLIPSE_PATH>\plugins\org.apache.ant_1.7.1.v20100518-1145\lib
-<SYSTEM_USER_PATH>\.ant\lib
-a directory added on the command line with the -lib argument
Do not panic, this is a common problem.
The commonest cause is a missing JAR.
This is not a bug; it is a configuration problem
The epsilon tasks are installed too, and I can run other workflows calling the epsilon.egl task in the same jre of eclipse. I'm using Epsilon (Incubation) version 0.9.0.201106111013, could this be related?
Thanks,
Silvia
[Updated on: Thu, 21 July 2011 01:28] Report message to a moderator
|
|
|
Re: [Epsilon] Not F.A.Q. [message #699257 is a reply to message #699162] |
Thu, 21 July 2011 07:36 |
Steffen Zschaler Messages: 266 Registered: July 2009 |
Senior Member |
|
|
Dear Silvia,
Many thanks for trying this out. ANT's class loader is forever causing
problems. I remember coming across this at one point, but cannot quite
remember what I did to fix it. Dimitris, Louis, do you have a suggestion?
In any case, you seem to be able to do more than me at the moment: My
Eclipse installation is currently refusing to do any Epsilon work at all
:-( . It is good to hear, though, that you can get something to work,
because it means that this is a problem with my installation rather than
with Epsilon or the extensions. I am still looking into this and as soon
as I can get my Eclipse setup to work again I will hopefully be able to
figure out a solution... I'll report back...
Best,
Steffen
On 21/07/2011 02:23, Silvia wrote:
> Hi Steffen,
>
> It seems the svn path in sourceforge change to:
> https://epsilonlabs.svn.sourceforge.net/svnroot/epsilonlabs
>
> I downloaded and successfully installed from there. The ant tasks were
> installed. But I have the following error:
>
> \EJB3Generation\workflow\build.xml:23: Problem: failed to create task
> or type epsilon.eglRegister
> Cause: Could not load a dependent class EglTask
> This class may be in a separate JAR that is not installed.
> Action: Determine what extra JAR files are needed, and place them in
> one of:
> -<ECLIPSE_PATH>\plugins\org.apache.ant_1.7.1.v20100518-1145\lib
> -<SYSTEM_USER_PATH>\.ant\lib
> -a directory added on the command line with the -lib argument
>
> Do not panic, this is a common problem.
> The commonest cause is a missing JAR.
>
> This is not a bug; it is a configuration problem
>
>
> The epsilon tasks are installed, and I can run other workflows calling
> the epsilon.egl task in the same jre of eclipse. I'm using Epsilon
> (Incubation) version 0.9.0.201106111013, could this be related?
>
> Thanks,
>
> Silvia
|
|
| |
Goto Forum:
Current Time: Mon Sep 23 12:41:26 GMT 2024
Powered by FUDForum. Page generated in 0.04631 seconds
|