|
Re: Content assist context [message #60039 is a reply to message #59987] |
Fri, 17 July 2009 12:05 |
Sebastian Zarnekow Messages: 3118 Registered: July 2009 |
Senior Member |
|
|
Hi Sebastian,
this is a bug. Please file a ticket.
Sorry for inconvenience,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Am 17.07.2009 12:21 Uhr, schrieb Sebastian Benz:
> Hello,
>
> I have a question regarding the content assist context. In the generated
> myDsl example, when I invoke the code completion after attr, the context
> object is an instance of "Model" and not an instance of "Class" as I
> would have expected.
> class Name {
> attr ...
>
> }
>
>
> public void completeAssignment(Assignment assignment,
> ContentAssistContext contentAssistContext, ICompletionProposalAcceptor
> acceptor) {
> //contentAssistContext.getCurrentModel() -> instanceof Model
>
> }
>
>
> However, I want to restrict the possible values based on the enclosing
> class. My question is, how can I retrieve the instance of the enclosing
> class?
>
> Regards,
>
> Sebastian
>
>
>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03274 seconds