[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmt] [Epsilon] ! Operator
|
- From: anne.keller@xxxxxxxx (Anne Keller)
- Date: Tue, 10 Jun 2008 16:02:21 +0000 (UTC)
- Newsgroups: eclipse.modeling.gmt
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
Hello,
In EOL I am trying to invoke an operation performing checks on the same
model element type for several models. The following code returns an error
when using the ! operator :
var tmp_model := ATMModel;
tmp_model.checkOp();
operation Any checkOp() {
self!Property.println();
-- returns: ' Undefined variable, type or model: 'self!Property' '
self.hasType('Property');
-- ok, has expected result
ATMModel!Property.println();
-- ok as well, but I don't want to hardcode ATMModel here
}
Is there a workaround for this?
Thank you in advance,
Anne