Skip to content

Reimplementing an EMF Browser based on LSP Server #512

Answered by planger
rubenporras asked this question in General
Discussion options

You must be logged in to vote

Hi,

Imho, neither GLSP nor EMFForms seems to be a direct fit for your requirement.

For your use case, I would suggest adding a custom request to your Xtext-based language server allowing to query the relations of an object to other objects. Your tree view could then query the language server and invoke this custom request to retrieve the information required for the view. EMF JSON Jackson is probably not a great choice as LSP4J are using Gson for JSON serialization; so if you'd use EMF JSON-Jackson you'd have to add an unnecessary serialization/deserialization step. Instead I'd use Gson to be directly compatible to LSP4J and register your own adapters (see for instance the GLSP GModel GSO…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rubenporras
Comment options

Answer selected by rubenporras
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants