Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 319264

Summary: [EMFMetamodel Tooling] 'ecore' epackage no longer visible
Product: [Modeling] M2T Reporter: Sven Efftinge <sven.efftinge>
Component: XpandAssignee: Project Inbox <m2t.xpand-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: darius.jockel, quoclan, sebastian.zarnekow
Version: 1.0.0Flags: sven.efftinge: indigo+
Target Milestone: SR1   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Sven Efftinge CLA 2010-07-08 09:36:09 EDT
In the past I could refer to any elements from ecore using the prefix 'ecore'.
But since 1.0.0 the tooling adds marker to such type references:

Example:

-----Test.ext -------
import ecore;
 
main(EClassifier c) : c.eClass();
--------------------------
 
Fehler : couldn't find operation 'eClass()' for type 'ecore::EClassifier'

 
-----Test.ext -------
import ecore;
 
main(EClassifier p) : ((EObject) p).eClass();
--------------------------
 
Fehler : cannot cast from ecore::EClassifier to ecore::EObject
Comment 1 Darius Jockel CLA 2010-07-09 06:42:52 EDT
There are no problems running the example in my workspace eclipse.
But the target eclipse is using emf 2.5 but Helios is using 2.6.
Maybe we should also upgrade the targeteclipse to emf 2.6?
Comment 2 Sven Efftinge CLA 2010-07-09 08:29:05 EDT
Yes, maybe it's the new EMF. 

I am using a Helios Classic with Xtext and Xpand SDK installed. 
The org.eclipse.xtend.util.stdlib project shows a couple of errors, which all seem to go down to this problem.
Comment 3 Darius Jockel CLA 2010-07-21 08:43:03 EDT
Ok, I will wait for an update of the targeteclipse up to Helios and emf 2.6
bevore I take a further look at this bug, ok?
Comment 4 Sebastian Zarnekow CLA 2010-07-21 08:46:35 EDT
(In reply to comment #3)
> Ok, I will wait for an update of the targeteclipse up to Helios and emf 2.6
> bevore I take a further look at this bug, ok?

It is unlikely that we'll change the target platform to Helios / EMF 2.6
Comment 5 Lan Phan CLA 2011-07-12 08:11:37 EDT
would you please tell me the status of this bug? Is it resolved yet?
Comment 6 Lan Phan CLA 2011-07-12 08:32:06 EDT
I used Eclipse 3.6, EMF 2.6, mdt-xpand-sdk-1.0.1, EMFMetaModel is used
It seems that xtend script cannot recognize EObject:
- using "import ecore": NOT OK
- using "ecore::EObject": NOT OK
- class cast from EObject derived obj -> EObject: NOT OK
Comment 7 Lan Phan CLA 2011-07-12 14:27:22 EDT
upgrade to mdt-xpand-sdk-1.1.0, still got this bug
Comment 8 Sven Efftinge CLA 2011-07-12 14:44:24 EDT
It's not been solved yet.
Comment 9 Lan Phan CLA 2011-07-12 22:33:57 EDT
Hi Sven Efftinge,
Have you had plan to resolve this bug yet?
It's my appreciated if you can provide me the patch soon.
Comment 10 Karsten Thoms CLA 2020-04-30 13:55:02 EDT
This is a batch close of open M2T Xpand bugs. It is not planned work on this component in the foreseeable future. If you think this issue needs to be solved and you plan to contribute a fix then feel free to reopen it.