EVL is not working. [message #587087] |
Sun, 07 March 2010 08:16 |
Eclipse User |
|
|
|
Hello!!
My name is Jose Miguel. I'm trying validate my model whit GMF-based editor using Epsilon Validatiion lenguaje, but, I have some problems.
I'm using Eclipse Modeling. I have all Epsilon plugins and I'm using ubuntu 9.10.
I have created my GMF-editor using Eugenia, and It's working ok, so, Now I'm trying validate it. I followed the tutorial called "Live validation and quick-fixes in GMF-based editors with EVL" ( http://www.eclipse.org/gmt/epsilon/doc/articles/evl-gmf-inte gration/)
First Step: I create the integration plugin. I call it "NATversion1.validation".
Second step: I set the dependencies org.eclipse.ui.ide and org.eclipse.epsilon.evl.emf.validation to the list of dependences.
Third step: I created a evl file under validation/firewalls.evl . I have done this file very easy, It's only for try.
context Zone {
constraint HasName {
check : self.name.isDefined()
message : 'Mistake'
}
}
context Host {
constraint test2 {
check : true
message : 'Mistake2'
}
constraint test3 {
check : false
message : 'Mistake3'
}
constraint test4 {
check : return true
message : 'Mistake4'
}
constraint test4 {
check : return false
message : 'Mistake5'
}
}
In the class Zone, It have a attr called name.
Fourth step:
In the extensions I added org.eclipse.epsilon.evl.emf.validation. Them I did right-click it and add a new constraintBinding. In the namespaceURI y set to the value firewalls and in the constraints y select the last evl file.
Nex,I added the org.eclipse.ui.ide.markerResolution and created two markerResolutionGenerator.
One:
class : org.eclipse.epsilon.evl.emf.validation.EvlMarkerResolutionGe nerator
markerType : NATversion1.diagram.diagnostic
Other
class : org.eclipse.epsilon.evl.emf.validation.EvlMarkerResolutionGe nerato
markerType : org.eclipse.emf.ecore.diagnostic
Fifth step:
I opened a new eclipse instance, created a new firewalls diagram with errors, saved it, clicked "validate" and nothing happened. Nothing "Problems" and view no indication for a constraint violation...
What's wrong???
I've reproduced the filesistem example from filesistem.emf (creating all fom it) and doing all step by step, and I can't do it work.
Thank. Congratulations for this fantastic system. ;)
Thank you very much.
Jose Miguel.
|
|
|
Powered by
FUDForum. Page generated in 0.03789 seconds