Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Add Pacakge imports to the OclParser
Add Pacakge imports to the OclParser [message #534917] Thu, 20 May 2010 11:34 Go to previous message
Eclipse User
Originally posted by: philipp.berger.student.hpi.uni-potsdam.de

Hey guys,
I just tried to parse an OCL expression like
....self.oclAsType(MyType1)..., so I got a type not found exception,
which I could fix by giving the full qualified name of the class
....self.oclAsType(org::packageTwo::MyType1)...

This constraint is defined for an EClass in PackageOne, this package has
no references to PackageTwo, but I like to handle subclasses from
PackageTwo in the constraint.

This problem occured while using the org.eclipse.emf.importer.rose for
porting models. In the Rose context all expressions are defined without
full qualified names, but after importing the class visibility seems to
be changed.


So my question, is it possible to bind severall packages to the
OclParser to avoid full qualified names?
 
Read Message
Read Message
Previous Topic:OCL constraint: blank character in a string
Next Topic:EConstraint in Ecore Model
Goto Forum:
  


Current Time: Tue Jun 18 03:18:28 EDT 2013

Powered by FUDForum. Page generated in 0.01667 seconds