[xcore] Reference types from UML2 meta-model in xcore [message #1837835] |
Mon, 08 February 2021 07:45  |
Eclipse User |
|
|
|
Hey there,
I am trying to reference the Component interface from UML2 in my xcore model like so:
import org.eclipse.uml2.uml.Component
[...]
class Uml2Test {
refers Component [1] component
refers EObject [1..*] targets
}
Manifest.MF lists org.eclipse.uml2.uml as a Required-Bundle. The bundle contains UML.genmodel.
I get several markers on this model:
- The import is marked with a warning that the import is not used.
- The line where I use Component has the following markers:
Multiple markers at this line
- The generic reference type must not refer to a data type
- Component cannot be resolved to a type.
Any ideas what I am doing wrong?
Thanks,
Jan-Philipp
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05716 seconds