Implement auto-imports (remove imports from UML) #16
lecoqlibre
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, imported elements are specified from the UML model.
For instance, the class
Address
imports theIAddress
interface. But sinceAddress
implementsIAddress
we could assume that the interface must be imported.Instead of specifying all imported elements in the UML, we could write an Acceleo query to compute elements that need to be imported at code generation time. This would ease the development of the UML model and avoid mistakes.
Note: this will break existing codegen as the import logic should be rewritten.
Beta Was this translation helpful? Give feedback.
All reactions