Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » reverse Engineer Java.util.List generating String[](When reverse Engineer a Java Class with a Java.util.List it is generating a String[] . I would like the generated source to keep the List Object instead of a String [])
reverse Engineer Java.util.List generating String[] [message #1751170] Thu, 05 January 2017 10:09 Go to next message
Karim Deif is currently offline Karim DeifFriend
Messages: 2
Registered: December 2016
Junior Member
When reverse Engineer a Java Class with a Java.util.List it is generating a String[] . I would like the generated source to keep the List Object instead of a String []

[Updated on: Thu, 05 January 2017 10:10]

Report message to a moderator

Re: reverse Engineer Java.util.List generating String[] [message #1751239 is a reply to message #1751170] Fri, 06 January 2017 06:39 Go to previous messageGo to next message
Jan Frank Rune Pettersson is currently offline Jan Frank Rune PetterssonFriend
Messages: 2
Registered: January 2017
Junior Member
I have same question.

This is not an answer, but maybe a clue; in this video String [1..*] magically translates into List<String> in other direction when generating code:
https : / / m.youtube.com/watch?v=Pim22rLtsW0

(Remove spaces in link above)
Re: reverse Engineer Java.util.List generating String[] [message #1751293 is a reply to message #1751170] Sat, 07 January 2017 09:03 Go to previous message
Jan Frank Rune Pettersson is currently offline Jan Frank Rune PetterssonFriend
Messages: 2
Registered: January 2017
Junior Member
This is not an answer, but I noticed in the instruction movie below; That String[1..*] in UML was translated into java.util.List<String>.

Still trying to understand how this happened because in my project String is still String at code generation.

"UML Tutorial 3.0 - Basics of Java Class Diagrams in Eclipse with Papyrus" by GWTlecturer at YouTube (I was not allowed to attach the link)
Previous Topic:Get content from model viewer
Next Topic:Custom Palette for Sequence Diagram Editor
Goto Forum:
  


Current Time: Tue Jan 21 16:34:30 GMT 2020

Powered by FUDForum. Page generated in 0.02445 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top