ObeoNetwork / UML-Designer

OpenSource (EPL licensed) UML2 Graphical Modelers (Class, Composite, State, Activity, Sequence ...)
http://umldesigner.org
320 stars 123 forks source link

Missing import in generated classes when using packages in a model #882

Closed Johann-Angeli closed 7 years ago

Johann-Angeli commented 8 years ago

When referencing classes, from an other package, in a model, the generated classes are missing the import related to that package.

In the following example, the vehicle class references an Engine from the package "powertrain".

image

The generated source of the classe Vehicle image

Environment

AxelRICHARD commented 7 years ago

Hi,

The problem comes from the UMLGen project of Eclipse. I raised a bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=510980, and proposed a patch to fix the problem.

Johann-Angeli commented 7 years ago

Hi,

Thanks.

But it looks like the reported bug id is incorrect (bug id is 510980 and not 51980). Then the good link is https://bugs.eclipse.org/bugs/show_bug.cgi?id=510980

AxelRICHARD commented 7 years ago

We finally migrated the UMLGen plug-ins into UML Designer. The fix for this problem #882 has been integrated along with #921.