[xcore] Couldn't resolve reference to GenBase 'EDiagnositicChain' [message #1696549] |
Wed, 27 May 2015 04:24  |
Eclipse User |
|
|
|
Hello
I have just installed Mars SR1 and I am having problems with an older xcore model file. In this model we created a validate operation to hook into the model validation.
This currently looks like this:
import org.eclipse.emf.ecore.EDiagnosticChain
import org.eclipse.emf.ecore.EMap
import org.eclipse.emf.common.util.BasicDiagnostic
class MyElement {
...
op boolean validate(EDiagnosticChain diagnostics, EMap<Object, Object> context) {
if (<some condition>) {
val String message = "You need to change this."
diagnostics.add(...)
false
} else
true
}
}
The errors I get on the operation definition are:
Multiple markers at this line
- A generic type may have arguments only if it refers to a classifier
- Couldn't resolve reference to GenBase 'EDiagnosticChain'.
- Couldn't resolve reference to GenBase 'EMap'.
- A generic type in this context must refer to a classifier or a type parameter
Is there a migration I need to perform?
Have the possibilities to define validation rules evolved?
Or is there something wrong with my import? (org.eclipse.emf.common is in the Plug-in Dependencies)
Thanks for your help!
Christoph
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.13623 seconds