|
Re: Content assist with Xbase grammars [message #844052 is a reply to message #843958] |
Fri, 13 April 2012 12:28   |
Eclipse User |
|
|
|
Hi Jochen,
I think you are facing this one:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=350823
After you save your dsl file (and put the src-gen onto the source-path
of your project), you'll most likely see the proposals.
Did you face other problems with content proposals, too?
Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Am 13.04.12 16:40, schrieb Jochen Schmich:
> Hi there,
>
> As a newbie to Xbase-based grammars I have to ask this rather simple
> question:
>
> Consider the following pretty straightforward case in which I use the
> JvmTypeReference to assign a type to a property.
>
> I think most readers should be familiar with this :)
>
> Property: 'property' name=ID ':' type=JvmTypeReference
>
> I've also implemented the JvmModelInferrer as proposed in the
> documentation. The linking stuff works nicely.
>
> I didn't achieve to make the elements declared in the model (they don't
> exist as Java classes yet) appear in content assist.
>
> Of course I only mean those elements being propagated as a
> JvmGenericType to the JvmModel in the JvmModelInferrer.
>
> I guess that, after digging deeper into the Xtext codebase, I'll be able
> to get them to appear - but is there a nice out-of-the-box way to do
> this in my ProposalProvider?
>
> I've tried whether the Entity-example project supports this - without
> success.
>
> Can someone give me a hint on this, please?
>
> Cheers,
> Jochen
|
|
|
Re: Content assist with Xbase grammars [message #849991 is a reply to message #844052] |
Thu, 19 April 2012 12:52  |
Eclipse User |
|
|
|
Hi Sebastian,
sorry for responding that late.
Thanks for pointing me to the bug report - that exactly addresses exactly my problem.
Following your advice makes my stuff work, at least for tool development purposes. This approach doesn't work out in our environment yet - our generators are too slow for that (we currently generate from UML models from context menu).
I didn't have any other problems with content proposals...
Cheers & thanks,
Jochen
|
|
|
Powered by
FUDForum. Page generated in 0.04684 seconds