Skip to content
Discussion options

You must be logged in to vote

Hi Matteo,

I think this is because in the java-emf-theia example the GLSP server is executed as a plain Java application and not as an Eclipse application. If you look at the launch config or at what is produced by maven, it is just invoking TaskListServerLauncher.main.

Thus, you'll need to set up the resource set manually ("StandaloneSetup") and can't rely on the Xtext Eclipse extension points and resource factory registry setup stuff. So I think, you'll need to invoke something like this to create the resource set with which you load your DSL file:

Injector injector = new MyDslStandaloneSetup().createInjectorAndDoEMFRegistration();
IResourceFactory resourceFactory = injector.getInstance(I…

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@planger
Comment options

@m-morelli
Comment options

@m-morelli
Comment options

@planger
Comment options

@planger
Comment options

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