Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Problem using EVL on a UML 2.1 meta-model?
Problem using EVL on a UML 2.1 meta-model? [message #583511] Sat, 05 December 2009 11:55 Go to next message
Barak  is currently offline Barak
Messages: 18
Registered: December 2009
Junior Member
Hi all,

I've been trying to write a simple EVL constraint for a UML 2.1 diagram. For this purpose I followed this tutorial http://www.eclipse.org/gmt/epsilon/doc/articles/evl-gmf-inte gration/ with slight changes:

First of all, the TIP written at the beginning of the tutorial recommends changing the .gmfgen model configuration if Quote:
> you have not implemented your editor using EuGENia

How do I change these configurations for a UML editor that wasn't implemented by me?

Step 3 - I'm using an EVL constraint which is compatible for the UML meta-model:
context Class {
critique constraint1 {
check {
'checked'.println();
return not(self.name = 'Foo');
}
message: "problem with class"
fix { title: "DummyFix" do {} }
}
} and added its path to the binary build tab.

Step 4 - I've added the org.eclipse.epsilon.evl.emf.validation extension and created a new constraint binding in it with the following details:

namespaceURI: http://www.eclipse.org/uml2/3.0.0/UML
constraints: the path of the *.evl from Step 3

added the org.eclipse.ui.ide.markerResolution extension and created two markerResolutionGenerator with the following details:

class: org.eclipse.epsilon.evl.emf.validation.EvlMarkerResolutionGe nerator
markerType: org.eclipse.uml2.uml.editor.diagnostic

class: org.eclipse.epsilon.evl.emf.validation.EvlMarkerResolutionGe nerator
markerType: org.eclipse.emf.ecore.diagnostic

Now I opened a new eclipse instance, created in it a UML 2.1 class diagram, drew a class with the name "Foo", saved the diagram, clicked "Validate" and nothing happened (There was nothing new under the "Problems" view and no indication for a constraint violation was shown on the diargram).

What am I doing wrong?

Thanks
Re: Problem using EVL on a UML 2.1 meta-model? [message #583526 is a reply to message #583511] Sun, 06 December 2009 13:18 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Barak,

I've reproduced this. Could you please open a bugzilla to keep track of
this and post the link here?

Cheers,
Dimitris

Barak wrote:
> Hi all,
>
> I've been trying to write a simple EVL constraint for a UML 2.1 diagram.
> For this purpose I followed this tutorial
> http://www.eclipse.org/gmt/epsilon/doc/articles/evl-gmf-inte gration/
> with slight changes:
>
> First of all, the TIP written at the beginning of the tutorial
> recommends changing the .gmfgen model configuration if Quote:
>> you have not implemented your editor using EuGENia
>
> How do I change these configurations for a UML editor that wasn't
> implemented by me?
>
> Step 3 - I'm using an EVL constraint which is compatible for the UML
> meta-model: context Class {
> critique constraint1 {
> check {
> 'checked'.println();
> return not(self.name = 'Foo');
> } message: "problem with class"
> fix { title: "DummyFix" do {} }
> }
> } and added its path to the binary build tab.
>
> Step 4 - I've added the org.eclipse.epsilon.evl.emf.validation extension
> and created a new constraint binding in it with the following details:
>
> namespaceURI: http://www.eclipse.org/uml2/3.0.0/UML constraints: the
> path of the *.evl from Step 3
>
> added the org.eclipse.ui.ide.markerResolution extension and created two
> markerResolutionGenerator with the following details:
>
> class: org.eclipse.epsilon.evl.emf.validation.EvlMarkerResolutionGe
> nerator
> markerType: org.eclipse.uml2.uml.editor.diagnostic
>
> class: org.eclipse.epsilon.evl.emf.validation.EvlMarkerResolutionGe
> nerator
> markerType: org.eclipse.emf.ecore.diagnostic
>
> Now I opened a new eclipse instance, created in it a UML 2.1 class
> diagram, drew a class with the name "Foo", saved the diagram, clicked
> "Validate" and nothing happened (There was nothing new under the
> "Problems" view and no indication for a constraint violation was shown
> on the diargram).
>
> What am I doing wrong?
> Thanks
Previous Topic:resolving a reference to an object, instead of obtaining a copy
Next Topic:resolving a reference to an object, instead of obtaining a copy
Goto Forum:
  


Current Time: Fri Apr 18 11:59:52 EDT 2014

Powered by FUDForum. Page generated in 0.01531 seconds