evl validation not working with gmf mindmap example [message #587758] |
Fri, 26 March 2010 11:37 |
sowmya Mising name Messages: 51 Registered: July 2009 |
Member |
|
|
Hi
I applied the procedure under Live validation and quick-fixes in GMF-based editors with EVL ( http://www.eclipse.org/gmt/epsilon/doc/articles/evl-gmf-inte gration/ ) . with the gmf example project : mindmap project to validate the elements on the editor.
But the evl file validation does not happen. Can anybody please provide some help.
The elements in the mindmap example are Topic ,Resource , so on.
So I have modified the evl file as below :
*******************************************************
context Resource {
constraint HasName {
check : self.name.isDefined()
message : 'Unnamed ' + self.eClass().name + ' not allowed'
}
}
context Topic {
critique NameStartsWithCapital {
guard : self.satisfies('HasName')
check : self.name.firstToUpperCase() = self.name
message : 'Folder ' + self.name +
' should start with an upper-case letter'
fix {
title : 'Rename to ' + self.name.firstToUpperCase()
do {
self.name := self.name.firstToUpperCase();
}
}
}
}
*******************************************************
Additional details :
I am using eclipse 3.5 and jdk 1.6
mindmap example location as below:
cvs repository location --
host name : dev.eclipse.org
cvspath : /cvsroot/modeling
username :anonymous
password :
under head -> gmf-> examples -> check out the following :
org.eclipse.gmf.examples.mindmap
org.eclipse.gmf.examples.mindmap.diagram
org.eclipse.gmf.examples.mindmap.edit
After checking out :
To this I applied the procedure under 'Live validation and quick-fixes in GMF-based editors with EVL ' ( http://www.eclipse.org/gmt/epsilon/doc/articles/evl-gmf-inte gration/ ) .
I have made the manifest file changes to the manifest file in the org.eclipse.gmf.examples.mindmap.diagram package and created a new package contaning evl file under the 'src' in the org.eclipse.gmf.examples.mindmap.diagram package.
All the extension point changes also done to the org.eclipse.gmf.examples.mindmap.diagram package plugin file.
then launch a eclipse application runtime and create diagram file in general project. And I am trying to validate this diagram file.
|
|
|
Powered by
FUDForum. Page generated in 0.03340 seconds