| EVL - Getting the name of the file in which the model is stored [message #1690706] |
Mon, 30 March 2015 13:13  |
Eclipse User |
|
|
|
Hello,
I've been trying to get the current file's name in EVL. The concept is that my class SXM holds an attribute called name. This attribute is supposed to get the name of the file in which the SXM is stored if it is not set. However, I can not find a way to retrieve the current file's name through EVL.
Is there a way to do this?
An example:
context SXM {
constraint HasName {
check : self.name.isDefined()
message : 'The model element ' + self.eClass().name + ' should define a name'
fix {
title : 'Name to ' + //get file name
do {
self.name := //get file name
}
}
}
}
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04343 seconds