EVL - Getting the name of the file in which the model is stored [message #1690706] |
Mon, 30 March 2015 17:13 |
|
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
}
}
}
}
|
|
|
|
Re: EVL - Getting the name of the file in which the model is stored [message #1690759 is a reply to message #1690738] |
Tue, 31 March 2015 05:46 |
|
Thank you Dimitri,
This is exactly what I was after.
A small question that I don't know if it appropriate to be make a new thread out of.
"Is there any real difference between getAllOfAType and xyzClass.All"
var target := UserInput.choose('Select target',
_Model.getAllOfType(Input.name));
var target := UserInput.choose('Select Input',
Input.all);
Also I noticed that getAllOfAType is not included in the PDF of epsilon under EOL is there any way to find the list of these methods online?
Best, Nikos
[Updated on: Tue, 31 March 2015 05:49] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01875 seconds