Skip to main content



      Home
Home » Modeling » TMF (Xtext) » IXTextBuilderParticipant for VS Code
IXTextBuilderParticipant for VS Code [message #1796278] Tue, 09 October 2018 08:46 Go to next message
Eclipse UserFriend
I have an Eclipse Plugin which I am trying to convert into a VS-Code Plugin

All the generators are called inside a class which implements IXtextBuilderParticipant on every save.

IXtextBuilderParticipant allows the processing of resources that are build by an Eclipse Project Builder (Ithink)

All the Generators are then dependent on a Data-Class which is generated by processing resources.

Now I want to do something similar for VS-Code.

What is the best way to proceed here?

Is IXTextBuilderParticipant only available for Eclipse Plugins, can I use something similar for a VS-Code Extension?

Or do I have to rewrite lots of code here=?
Re: IXTextBuilderParticipant for VS Code [message #1796279 is a reply to message #1796278] Tue, 09 October 2018 08:55 Go to previous messageGo to next message
Eclipse UserFriend
there is no such things. there is only one IGenerator2 for one lang.
you have to bind a common one in ide module

alternatively you could come up with something that works with java service loaders (if you are familiar with that)

[Updated on: Tue, 09 October 2018 09:14] by Moderator

Re: IXTextBuilderParticipant for VS Code [message #1796296 is a reply to message #1796278] Tue, 09 October 2018 14:10 Go to previous message
Eclipse UserFriend
Sebastian Zarnekow just presented an interesting approach to combine service loader with Guice modules at JCON2018. Could work for that case.

Basic idea: Declare Guice modules as provided services that are looked up with service loader to create a combined injector.
Previous Topic:XText Binding Generators from another Project
Next Topic:Variable reference error
Goto Forum:
  


Current Time: Wed Jun 18 06:07:23 EDT 2025

Powered by FUDForum. Page generated in 0.03963 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top