Skip to main content


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 14:34 Go to next message
Juan Cadavid is currently offline Juan CadavidFriend
Messages: 59
Registered: July 2009
Location: Paris, 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 16:27 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
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: Fri Apr 26 04:13:46 GMT 2024

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

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

Back to the top