Problem using EVL on a UML 2.1 meta-model? [message #502095] |
Sat, 05 December 2009 11:55  |
Eclipse User |
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.27083 seconds