Book a Demo

Author Topic: Code Engineering/import Source and file system  (Read 3030 times)

Dirk Hoffmann

  • Guest
Code Engineering/import Source and file system
« on: March 20, 2003, 01:18:54 am »
Hi !

When I reimport source-files, that already exist in my class model with Code-Engineering->Import Source Directory...
I get duplicate class diagrams for each class that already existed in my model !

Unless the imported java files lie exactly in the same directory as the files from the former import.

E.g.:
1) I start by reengineering my java files from say
   G:\project\v1.0\src\com
2) Then I use theese imported Classes to make some
   sequence diagrams, activity diagrams, ...
3) After some comprehensive changes in the source code
   I want to update and expand my model by reimporting
   the java files, but now the java files lie in say
   C:\team\released\project\v3.1\src\com

Now I'm forced to create a drive G:\ and directories project\v1.0\src (case sensitive!) and import the new java files from there.
Otherwise it would result in duplicate Class definitions within EA.

This is not very amusing !

Am I doing something wrong ?
Is that intended this way ?


mbc

  • EA User
  • **
  • Posts: 237
  • Karma: +1/-0
  • Embedded software developer
    • View Profile
Re: Code Engineering/import Source and file system
« Reply #1 on: March 20, 2003, 07:43:21 am »
Hi Dirk

Each class has a filename associated with it, which you can see in the Properties docked window. That is the place where the code will be generated/reversed to and from. If you want to change that location, you can. You probably think it is too much work to change each path in every class by hand, but Sparx has already thought about this! Check out "Local paths" settings. Read about it in the help file.

Enjoy
Mikkel