Ecore2OCLInEcore problem referencing Classes in subpackages [message #768038] |
Mon, 19 December 2011 08:19  |
Eclipse User |
|
|
|
Hello everybody, I have a problem while passing from an Ecore file to the OCLInEcore textual version. The reference to elements in nested packages are not correctly resolved.
I have the following metamodel in Ecore
module _'Test.ecore'
package pkg : pkg = '/pkg/1.0'
{
class Class extends pkg::subPkg::subsubPkg::SubSubpkgClass;
package subPkg : subPkg = '/pkg/subPkg/1.0'
{
class SubpkgClass;
package subsubPkg : subsubPkg = '/pkg/subPkg/subPkg/1.0'
{
class SubSubpkgClass;
}
}
}
When I open it with OCLInEcore it generates the following
module _'Test.ecore'
package pkg : pkg = '/pkg/1.0'
{
class Class extends subsubPkg::SubSubpkgClass;
package subPkg : subPkg = '/pkg/subPkg/1.0'
{
class SubpkgClass;
package subsubPkg : subsubPkg = '/pkg/subPkg/subPkg/1.0'
{
class SubSubpkgClass;
}
}
}
Note the difference
Before
class Class extends pkg::subPkg::subsubPkg::SubSubpkgClass;
After
class Class extends subsubPkg::SubSubpkgClass;
From OCLInEcore to Ecore works correctly but not the other way.
Thank you for any help,
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04753 seconds