Angular based extensions in Theia

Hello,

I am having below 3 requirements, please help me on these.

  1. I want to use some angular modules and available extension (on npm registry) into eclipse theia? - is this possible, if yes could you please help me by sharing some implementation or docs.

  2. I want to use java as backend with typescript for reusing current existing code. is it possible to achieve?

  3. What are the binaries included in thiea?

Thanks
Himanshu

@hihijain thank you for the discussion:

I want to use some angular modules and available extension (on npm registry) into eclipse theia? - is this possible, if yes could you please help me by sharing some implementation or docs.

I don’t see why you can’t, the framework currently uses react for its views, widgets and components but it should be possible to also use angular to suit your requirements. There is no example implementation or docs on how to do so that I know of however.

I want to use java as backend with typescript for reusing current existing code. is it possible to achieve?

I do not think it is possible, not at least with a lot of rewrite (https://github.com/eclipse-theia/theia/issues/3396#issuecomment-435898099).

What are the binaries included in thiea?

What do you mean by the framework’s binaries? The framework is composed of different extensions each published to npm for an application to consume. It is not a application or product, unless you were to use one of the examples. Here are some docs on creating an app, or extension:

Thanks a lot for a quick reply.

Attached image is showing Java as backend. How accurate is this image? This image is creating lot of confusion.

Image reference - https://docs.google.com/document/d/1aodR1LJEF_zu7xBis2MjpHRyv7JKJzW7EWI9XRYCt48/edit

Thanks
Himanshu

This image is creating lot of confusion.

@hihijain I’m sorry but where was this image taken from, the actual source?

As mentioned, the previous discussion https://github.com/eclipse-theia/theia/issues/3396#issuecomment-435898099 references why it is is not possible at the moment. The only way to use some form of java or other programming language would be to spawn child processes.

And this looks like what you (@hihijain ) are trying to achieve.

There is a working example in https://github.com/eclipse-emfcloud/coffee-editor where the typescript Theia backend launches backend java servers. It then communicate with these servers with REST services or web sockets.

There are several classes which illustrate this, such as :

There is also the simpler https://github.com/eclipse-emfcloud/emfcloud-modelserver-theia project which is a Theia extension launching and connecting to an EMF-Cloud model server.
(launched by https://github.com/eclipse-emfcloud/emfcloud-modelserver-theia/blob/master/modelserver-theia/src/node/model-server-backend-contribution.ts )
There you should be able to discover more easily how the Typescript Theia backend communicates with the java model server.