Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » IXTextBuilderParticipant for VS Code
IXTextBuilderParticipant for VS Code [message #1796278] Tue, 09 October 2018 12:46 Go to next message
Mehmetcan Sinir is currently offline Mehmetcan SinirFriend
Messages: 55
Registered: September 2018
Member
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 12:55 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14669
Registered: July 2009
Senior Member
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)


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Tue, 09 October 2018 13:14]

Report message to a moderator

Re: IXTextBuilderParticipant for VS Code [message #1796296 is a reply to message #1796278] Tue, 09 October 2018 18:10 Go to previous message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

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: Sat Apr 27 02:45:16 GMT 2024

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

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

Back to the top