modeling external libraries [message #905429] |
Thu, 30 August 2012 07:18  |
Eclipse User |
|
|
|
Hi all!
I've been sidetracked from my Xtext project for a while and I am a little confused at the moment. Please accept my apologies if this has been asked before, because I only found a few references that went unanswered in the end.
How do fill the model with information about code that is located in external or system libraries? The information might not always be inside source code, but I might have to parse compiled files and merge with the corresponding debug information.
Hopefully I won't have to parse these libraries every time and the model for them can be persisted and reloaded quickly.
best regards,
Vlad
|
|
|
|
|
Re: modeling external libraries [message #905491 is a reply to message #905447] |
Thu, 30 August 2012 09:28  |
Eclipse User |
|
|
|
On 2012-30-08 13:57, Vlad Dumitrescu wrote:
> Thank you, Henrik!
>
> Gepetto is a gold mine, but just as the regular ones, it helps a lot to
> know where to look! :)
>
> In short, you are delivering prebuilt XMI files containing the
> libraries?I will check out how you do that and how it is merged with the
> rest of the model.
>
It is a bit ugly; the library model is built by a Junit test and I
manually copy the result to the pp.dsl project's targets/ folder and
check it in.
I have a class that syncs the hidden project on startup.
The rest is basically about wiring up the injectors/modules and adapting
the model to xtext (i.e. resource description and the like).
The implementation is a bit kludgy, as this was something I did early on
in the life of Geppetto, and I did not know better (I should have
separated out all the pptp logic into separate bundle with its own
registration etc. to make it cleaner). Ah well...
Regards
- henrik
|
|
|
Powered by
FUDForum. Page generated in 0.04816 seconds