Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » evl validation not working with gmf mindmap example
evl validation not working with gmf mindmap example [message #587758] Fri, 26 March 2010 11:37
sowmya Mising name is currently offline 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.
Previous Topic:Reuse of EOL operations in ETL
Next Topic:Problem with epsilon.eol: Does not resolve referenced metamodels (Type 'Ecore!EPackage' not found)
Goto Forum:
  


Current Time: Thu Oct 23 01:59:37 GMT 2014

Powered by FUDForum. Page generated in 0.01492 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software