Using Xtend for editor outline view [message #33897] |
Wed, 25 March 2009 11:38  |
Eclipse User |
|
|
|
Hello,
I'm trying to find out how to use Xtend for my editor's outline view in
the same way as EditorExtensions.ext is used in oAW's Xtext (which I
personally find more straight forward and comfortable).
I suppose that if I want to use the EditorExtensions.ext from oAW in TMF
Xtext, a binding in Abstract<MyLanguage>RuntimeModule.java must be
specified, so that the Xtend file is loaded. However, I cannot find a
suitable binding in DefaultRuntimeModule.java. Also, where do I tell
Xtext to use the Xtend file instead of the Java code
(SemanticModelTransformer)? Must I do this differently or am I missing
something?
Regards,
Johan
|
|
|
Re: Using Xtend for editor outline view [message #34198 is a reply to message #33897] |
Thu, 26 March 2009 03:01   |
Eclipse User |
|
|
|
Hi Johan,
we only have Xtend API for content assist and scoping so far.
So you'll either have to wait, use the existent Java-API or implment the
Xtend-based content provider on your own (and contribute it ;-)).
regards,
Sven
Johan Wannheden schrieb:
> Hello,
>
> I'm trying to find out how to use Xtend for my editor's outline view in
> the same way as EditorExtensions.ext is used in oAW's Xtext (which I
> personally find more straight forward and comfortable).
>
> I suppose that if I want to use the EditorExtensions.ext from oAW in TMF
> Xtext, a binding in Abstract<MyLanguage>RuntimeModule.java must be
> specified, so that the Xtend file is loaded. However, I cannot find a
> suitable binding in DefaultRuntimeModule.java. Also, where do I tell
> Xtext to use the Xtend file instead of the Java code
> (SemanticModelTransformer)? Must I do this differently or am I missing
> something?
>
> Regards,
> Johan
|
|
|
Re: Using Xtend for editor outline view [message #34229 is a reply to message #34198] |
Thu, 26 March 2009 03:09  |
Eclipse User |
|
|
|
Hi Sven,
thanks for your answer, I will look into that.
Regards, Johan
Sven Efftinge wrote:
> Hi Johan,
>
> we only have Xtend API for content assist and scoping so far.
> So you'll either have to wait, use the existent Java-API or implment the
> Xtend-based content provider on your own (and contribute it ;-)).
>
> regards,
> Sven
>
> Johan Wannheden schrieb:
>> Hello,
>>
>> I'm trying to find out how to use Xtend for my editor's outline view
>> in the same way as EditorExtensions.ext is used in oAW's Xtext (which
>> I personally find more straight forward and comfortable).
>>
>> I suppose that if I want to use the EditorExtensions.ext from oAW in
>> TMF Xtext, a binding in Abstract<MyLanguage>RuntimeModule.java must be
>> specified, so that the Xtend file is loaded. However, I cannot find a
>> suitable binding in DefaultRuntimeModule.java. Also, where do I tell
>> Xtext to use the Xtend file instead of the Java code
>> (SemanticModelTransformer)? Must I do this differently or am I missing
>> something?
>>
>> Regards,
>> Johan
|
|
|
Powered by
FUDForum. Page generated in 0.06835 seconds