Book a Demo

Author Topic: Round tripping with Java  (Read 2429 times)

whgibbo

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Round tripping with Java
« on: January 20, 2012, 07:09:23 pm »
Hi,
Was wondering if somebody could point me in the right direction..

I'm new to EA, finding it really good..  But I'm having a problem with round tripping..

  • When I generate the code from the model the first time, it all seems ok.. Except that the imports for classes from a package that I've added to the project aren't being added to the generated source.  

eg.
public class test implements command {
}


but is missing the import for command, which should be:
import com.mypackageimport.cmd.command



  • When I then import the code that was generated, the classes that were realized seem to have been added again.  :(
  • When I look at the class model and right click.  Select Advanced and then Parent..  I can see 2 instances of the same class. One with a package of <none> and the other with the cmd.
    Before importing the code from the source, I only had the one with cmd
  • Then when I generate the code again from EA, this time the class has the
[/list]

In the class model, when I drag the class  from the imported package.  It appears as cmd::command, and under the advanced, parent properties it has the package of cmd

But I can't seem to figure out how to not have the cmd on the class in the class model.
Any ideas on how to solve this ?

whgibbo

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: Round tripping with Java
« Reply #1 on: January 20, 2012, 07:27:03 pm »
Even when adding an interface in the same EA project, doesn't work..

No Import, and also includes the package name before the interface..

What have I done wrong..

whgibbo

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: Round tripping with Java
« Reply #2 on: January 23, 2012, 06:53:22 pm »
Anybody got any thoughts ?