Archi Forum

Archi Plug-ins => jArchi => Topic started by: Thomas Rohde on May 30, 2023, 09:14:35 AM

Title: Easily create Eclipse dialog
Post by: Thomas Rohde on May 30, 2023, 09:14:35 AM
I'm pleased to share a little side project I have created to easily create Eclipse dialog in jArchi.

Please go to this repo: https://github.com/ThomasRohde/jArchi-CreateDialog (https://github.com/ThomasRohde/jArchi-CreateDialog)

From the readme:

CreateDialog is a user interface library that enables you to create nice and functional Eclipse dialogs in Archi with ease. Whether you need to display information, collect input, or perform actions on your Archi models, CreateDialog has you covered. With CreateDialog, you don't have to worry about the technical details of Eclipse and Java. You can focus on the design and logic of your dialogs, while still having access to a rich set of UI elements and features that can handle any UI challenge you throw at them.

The repo contains a model with all the documentation as well as a script to display the documentation using the library.

ArchiDialogs.png

I have only tested the script in Windows 10 using Edge.

If you find it valuable please star it, and you are welcome to suggest changes. Remember, I am not a developer, and this has initially been created to suit my needs only.

Title: Re: Easily create Eclipse dialog
Post by: Jean-Baptiste Sarrodie on May 30, 2023, 13:36:58 PM
Hi,

Thank you !

I've wanted such lib for a long time and now you've done it.

Regards,

JB
Title: Re: Easily create Eclipse dialog
Post by: Phil Beauvoir on May 30, 2023, 16:07:07 PM
Hi,

thanks again!

Regards,

Phil
Title: Re: Easily create Eclipse dialog
Post by: jsimoncello on June 13, 2023, 10:08:20 AM
Hi
Thanks Thomas, really useful library. I'll give a try, I already have use cases for theses forms.

FYI At first launch of the ajs script, I got the following error, (maybe I am not using the correct JS Engine ?), but I simply changed the ??= operand to a test on null value.
Script Error: javax.script.ScriptException: org.graalvm.polyglot.PolyglotException: SyntaxError: CreateEclipseForm.js:647:18 Expected an operand but found =
        columns ??= 2;
Title: Re: Easily create Eclipse dialog
Post by: Thomas Rohde on June 13, 2023, 13:59:57 PM
Thanks,

I'll fix it in the next update. I just learned about the ??= operator.

I use Archi 4.9.3 and jArchi 1.3.1, and the GraalVM JavaScript engine.