Getting rid of fully qualified type names in ocl expressions [message #1006546] |
Thu, 31 January 2013 11:00  |
Eclipse User |
|
|
|
Hi,
In the OCL Example console (mature console) I need to use fully qualified type identifiers. Does OCL have some built-in mechanism to let me use unqualified type identifiers, e.g. Library instead of library::Library instead?
If there's no builtin mechanis, is it possible to hack the (again, mature) interpreter to find types magically, e.g. by inspecting registered EPackages?
Cheers,
Felix
|
|
|
|
|
Re: Getting rid of fully qualified type names in ocl expressions [message #1007722 is a reply to message #1007098] |
Thu, 07 February 2013 05:07  |
Eclipse User |
|
|
|
Hi
I think you may find lookupPackage easier. There is already a lookup for
no explicit package so you just need to broaden it.
Regards
Ed Willink
On 04/02/2013 12:59, Felix Dorner wrote:
> Hi Ed,
>
> qualified classifier names are not the problem. I want to dynamically
> resolve _unqualified_ classifier names against registered package. I
> could then just write "Author.allInstances()" instead of
> "library::Author.allInstances()". I think I could try to customize
> EcoreEnvironment.lookupClassifier() to implement such a dynamic
> cross-package lookup.
>
> Felix
|
|
|
Powered by
FUDForum. Page generated in 0.09502 seconds