Feature Request: Extend IMG2UML Existing Model from Uploaded Diagram Image
Description Currently, the new IMG2UML feature allows uploading an image of a class diagram and automatically converting it into an interactive model. It would be very useful to extend this functionality so that users can merge a new uploaded diagram into an already existing model instead of starting from scratch.
Use Case • When working with large diagrams, brainstorming often happens on paper/whiteboard for only a portion of the model. • Users would like to upload that portion and merge it into the existing diagram, avoiding the need to redraw everything. • This improves workflow for iterative modeling and collaboration.
Proposed Behavior (simple version) • If we upload over a non-empty model: 1. Add new classes and associations. 2. Apply a simple merging rule: merge automatically when classes or associations share the same name. • This aligns with Pareto’s principle: 80% of cases can be handled with a simple rule.
Benefits • Saves time when updating or extending existing diagrams. • Makes BESSER more practical for real-world, iterative modeling. • Reduces redundancy and improves usability of IMG2UML.
I think we should adapt IMG2UML to support both use cases: 1. importing a new model from scratch, and 2. extending/merging into an existing model.
To make it cleaner, the merge logic could be separated into a dedicated mergeModel utility function. That way, we can also reuse it in other import scenarios beyond IMG2UML. This would keep the design modular and make the feature easier to maintain and extend later on.