[Xbase][Eclipse] Open Type on generated source link to the DSL source [message #1659001] |
Sun, 08 March 2015 12:22  |
Eclipse User |
|
|
|
Hi,
I am working on a project using Xbase, the generated plugins are used in the Eclipse IDE.
In this particular project, one DSL generates multiple java sources (5 - 50) that are then used by other non-generated java sources.
I would like to link to the generated java sources instead of the DSL when I follow an hyperlink (ctrl+click on a class/method in a java source), Open Type (ctrl+shift+T), debug, etc...
It seems that sources generated with IFileSystemAccess#generateFile() link properly, but all the sources that are generated with the JvmModelInferrer link to the DSL.
Is there a way to disable this feature and always link to the generated java sources?
Thank you for your help,
Anthony
|
|
|
|
Re: [Xbase][Eclipse] Open Type on generated source link to the DSL source [message #1671069 is a reply to message #1661149] |
Fri, 13 March 2015 08:58   |
Eclipse User |
|
|
|
Thanks!
I tried to bind IURIEditorOpener to my subclass of DerivedMemberAwareEditorOpener, but none of the methods in there gets called.
It seems that it fails before that:
I generate java classes from a DSL located in different project (my projects are the following: xxx.project.dsl, xxx.project.client, xxx.project.server, xxx.project.common), all the DSLs are in the dsl project and generate classes in the common, client and server project.
When I try to access a generated class (via Open Type or ctrl+click on a link), it fails because eclipse is trying to look for the DSL in the project of the generated class rather than in the DSL project.
Somehow it fails before event calling IURIEditorOpener (even if my bindIURIEditorOpener () method is called)...
It looks like the binding to the URI of the DSL is done before, i assume I should update this?
Thanks a lot for your help,
Anthony
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.25247 seconds