Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » [OclInEcore] imported files not recognized
[OclInEcore] imported files not recognized [message #709134] Wed, 03 August 2011 10:34 Go to next message
Juan Cadavid is currently offline Juan Cadavid
Messages: 49
Registered: July 2009
Location: Rennes, France
Member

Hi,

I have a problem when importing and using elements from other Ecore files inside my current file in OclInEcore. Suppose I have a.ecore:

module _'a.ecore'
package packA : packA = 'packA'{
	class A;
}


which is imported by b.ecore:

module _'b.ecore'
import packA : 'a.ecore#/';

package packB : packB = 'packB'
{
	class B extends packA::A;
}

This file displays no errors in the editor when saved; but when I close and reopen I get this:
module _'b.ecore'
package packB : packB = 'packB'
{
	class B;
}

Is there anything I'm doing wrong? I'm using the Indigo release version. This used to work well before.

Thanks a million,

-Juan
Re: [OclInEcore] imported files not recognized [message #709216 is a reply to message #709134] Wed, 03 August 2011 12:27 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4035
Registered: July 2009
Senior Member
Hi

Thanks for the simple example. I had a nagging suspicion that I'd messed
something up, but none of my tests
cover it, and none of the 20 odd additional ones for Indigo either.

Watch https://bugs.eclipse.org/bugs/show_bug.cgi?id=353793 for a
workaround and resolution.

Regards

Ed Willink

On 03/08/2011 15:34, Juan Cadavid wrote:
> I have a problem when importing and using elements from other Ecore
> files inside my current file in OclInEcore. Suppose I have a.ecore:
>
>
> module _'a.ecore'
> package packA : packA = 'packA'{
> class A;
> }
>
>
> which is imported by b.ecore:
>
>
> module _'b.ecore'
> import packA : 'a.ecore#/';
>
> package packB : packB = 'packB'
> {
> class B extends packA::A;
> }
>
> This file displays no errors in the editor when saved; but when I
> close and reopen I get this:
>
> module _'b.ecore'
> package packB : packB = 'packB'
> {
> class B;
> }
>
> Is there anything I'm doing wrong? I'm using the Indigo release
> version. This used to work well before.
>
Previous Topic:Is there a caching version of org.eclipse.ocl.AbstractEnvironment?
Next Topic:index in a collection
Goto Forum:
  


Current Time: Sat Aug 30 02:41:50 EDT 2014

Powered by FUDForum. Page generated in 0.01533 seconds