Code Encoding UTF-8
Hi all,
I'm a student from China using the academic edition of uml-lab. Uml-lab is so cool. But I have some problems.
1. My Uml-lab Java project text file encoding is UTF-8. If I make comment in the generated java code in CHINESE, it's ok. If I make some change in the *.umlcd file. Save and generated corresponding java codes. The comments I've made in CHINESE changed into unrecognizable characters. This upset me very much.
2. I would like to change Java code style only a little. How can I make it?
Any help will be appriciate. Thank you.
I'm a student from China using the academic edition of uml-lab. Uml-lab is so cool. But I have some problems.
1. My Uml-lab Java project text file encoding is UTF-8. If I make comment in the generated java code in CHINESE, it's ok. If I make some change in the *.umlcd file. Save and generated corresponding java codes. The comments I've made in CHINESE changed into unrecognizable characters. This upset me very much.
2. I would like to change Java code style only a little. How can I make it?
Any help will be appriciate. Thank you.
Comments
I'm glad you like UML Lab. Regarding your questions:
a) I tried to reproduce your issue by creating a small example using Chinese text in comments. But unfortunately I was not able to reproduce it. I managed to import and to generate Chinese characters. Please find attached a model and a screenshot of my test. Could you please try if generating code works for you as expected? Just unzip testing.zip and copy both model and diagram into a project in your workspace and see if round trip engineering keeps the characters.
b) Creating a Code Style to adapt UML Lab to your project's requirements is very simple. We have some tutorials for this purpose. Just have a look at http://www.uml-lab.com/en/uml-lab/tutorials/creating-code-styles-for-existing-code/ and http://www.uml-lab.com/en/uml-lab/tutorials/uml-profile-anpassen-der-modellierung-in-uml-lab/
If you have any questions don't hesitate asking.
Best regards,
Manuel Bork
PS I'll link the bug report http://trac.yatta.de/ticket/100365 to this question and close it.
I think that uml-lab does support UTF-8 encoding, and Chinese are supported as well. However, I guess may be there is something wrong with the saving logic when multi *.umlcd file are associated with one *.uml file?