Now, in case of any editing of an element with external tool:
- a warning message box appears after clicking "Finish" in the element configuration wizard,
- the element is removed from the WD scene, if the user approved the message box.
It happens because the element could be a part of a workflow. But, actually, the problem can happen only when the element has ports, connected to other workers - if you remove a connected port, then UGENE won't figure out what it needs to do with the connection, so a user should connect the port again.
However, when data on the following pages are edited, ports and connections are not changed:
- "General"
- "Parameters"
- "Command"
- "Element appearance"
So, all such elements on the WD scene can be updated.
Thus in terms of the issue:
- Show the warning message box and remove the elements only when data on "Input data" and "Output data" pages are changed,
- Update elements on the WD scene when data on the other pages of the wizard are edited.