-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add function to duplicate a view #33
Comments
I just looked at the underlying Java code that does this. It's quite complicated and creates a few actions for the Undo/Redo Command Stack. This code can't be used "as is" because jArchi uses a different approach for the Undo/Redo stack. So this code would need to be more or less duplicated for jArchi. The problem with this is that more and more features might also require underlying duplicated Java code. An alternate approach is to implement these types of features in JavaScript as part of a jArchi library. jArchi should supply the basic building blocks but not attempt to duplicate every feature in Archi itself. I'll try to start a library of these types of functions over the coming weeks... |
Having said all that, an |
Hi, I know this is a bit old topic but I had recently the same need to duplicate objects from javascript. So I made a quick workaround by adding this code to 'EObjectProxy' class and redeploying JArchi on my Archi instance:
This allowed me to duplicate views and objects from scripts (my test script is The main drawback of this is that it is not possible to get an handle on the newly created object as |
Is there a way to do this? |
Not yet. I'll take another look at it. |
Will be in the next version of jArchi. |
Please, as this can be done with the Gui.
The text was updated successfully, but these errors were encountered: