Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Helmut Ortmann on September 27, 2023, 09:06:23 pm

Title: Expiriences with IDE like VS Code, WebStorm for EA JavaScript development
Post by: Helmut Ortmann on September 27, 2023, 09:06:23 pm
Hello,

Have you tried an external JavaScript IDE like VS Code, Eclipse or WebStorm to develop your JavaScrips for EA?

External IDEs are powerful. They lack the EA integration. Do you have any experiences?

Thanks,

Helmut

Title: Re: Expiriences with IDE like VS Code, WebStorm for EA JavaScript development
Post by: qwerty on September 28, 2023, 04:43:04 am
Not with Java. I use Python with Wingware. The missing intellisense for EA's API does not matter. I wrote my own wrapper which Pythin is aware of.

q.
Title: Re: Expiriences with IDE like VS Code, WebStorm for EA JavaScript development
Post by: Helmut Ortmann on September 28, 2023, 07:47:26 pm
Sounds good.

What are your experiences, pros and cons? Would you recommend this approach for big projects?

In Scripting with JavaScript in the EA environment, we must synchronize the code. EA-Matic could do this.

Thanks for your answer.
Title: Re: Expiriences with IDE like VS Code, WebStorm for EA JavaScript development
Post by: Geert Bellekens on September 28, 2023, 07:55:23 pm
In Scripting with JavaScript in the EA environment, we must synchronize the code. EA-Matic could do this.
EA-Matic currently only synchronizes from EA to files; not the other way around.
I have toyed with the idea to use another editor for my (VBScript) scripts, but I gave up because it was more hassle then it was worth.

I can imagine that for some other scripting languages such as Javascript the benefits of an external code editor would be larger.

Geert
Title: Re: Expiriences with IDE like VS Code, WebStorm for EA JavaScript development
Post by: qwerty on September 28, 2023, 09:24:21 pm
I have done quite large projects this way. Important is the wrapper since EA's API is just poor in it's raw form.

q.
Title: Re: Expiriences with IDE like VS Code, WebStorm for EA JavaScript development
Post by: Helmut Ortmann on September 29, 2023, 12:20:43 am
Hi Geert,

Thanks for your correction. Updating, deleting, or writing the code into EA shouldn't be too complicated.

Hi q,

Could you explain the wrapper? I only have a rough idea.

Thanks,

Helmut

Title: Re: Expiriences with IDE like VS Code, WebStorm for EA JavaScript development
Post by: qwerty on September 29, 2023, 03:56:06 am
Well, my wrapper has similar objects to EA's objects. But it has overriden/additional operations/attributes. It's a bit tedious to create all desired objects where needed. E.g. my Repository object has a Queury which parses the XML from EA and returns an array or array which definitely makes handling of queries easier. The Connector object has an Other(objId) operation which returns the oppsite element and saves the examination of supplier/client. There's a class to parse those EA-CSV lists which is a big relief. etc. This way I sanitized the API as far as possible.

q.
Title: Re: Expiriences with IDE like VS Code, WebStorm for EA JavaScript development
Post by: Helmut Ortmann on October 03, 2023, 04:26:04 am
Thanks a lot.

I think I have got the picture.

Best regards,

Helmut