Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » [Complete OCL] Import a core metamodel
[Complete OCL] Import a core metamodel [message #1386382] Tue, 17 June 2014 09:04 Go to next message
Hauke Fuhrmann is currently offline Hauke FuhrmannFriend
Messages: 333
Registered: July 2009
Senior Member
Hi there,

I have an external Ecore metamodel that I need to import into an OCL
file. Unfortunately this metamodel contains a package called 'core'. So
I have

import mycore : 'platform:/plugin/com.example/model/mycore.ecore'::core

And I get

"Multiple markers at this line -
Ambiguous resolution: Library : ocl Package : core -
Ambiguous resolution: Package : mycore Package : core"

How to solve this under the restriction that I cannot rename that package?

Cheers,
Hauke
Re: [Complete OCL] Import a core metamodel [message #1386429 is a reply to message #1386382] Tue, 17 June 2014 13:35 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

You'll probably find it easiest to just do

import mycore : 'mycore.ecore'

But

import mycore : 'platform:/plugin/com.example/model/mycore.ecore'::core

or

import mycore : 'platform:/plugin/com.example/model/mycore.ecore#/'

should work too.

'core' is not a reserved word so my guess is that you're using an old
version whose bugs I have forgotten about.

The Luna release is available now as Luna RC4 and should install on
Kepler or Juno from

https://www.eclipse.org/modeling/mdt/downloads/?project=ocl

Regards

Ed Willink


On 17/06/2014 10:04, Hauke Fuhrmann wrote:
> Hi there,
>
> I have an external Ecore metamodel that I need to import into an OCL
> file. Unfortunately this metamodel contains a package called 'core'.
> So I have
>
> import mycore : 'platform:/plugin/com.example/model/mycore.ecore'::core
>
> And I get
>
> "Multiple markers at this line -
> Ambiguous resolution: Library : ocl Package : core -
> Ambiguous resolution: Package : mycore Package : core"
>
> How to solve this under the restriction that I cannot rename that
> package?
>
> Cheers,
> Hauke
Previous Topic:Bug or correct behavior
Next Topic:Load an OCL File as a resource programmatically
Goto Forum:
  


Current Time: Tue Mar 19 05:51:00 GMT 2024

Powered by FUDForum. Page generated in 0.01314 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top