Author Topic: Importing Source Code Files (newbie questions)  (Read 2451 times)

oehrened

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Importing Source Code Files (newbie questions)
« on: June 11, 2007, 11:47:59 pm »
Hi,

I started to work with EA only yesterday and need some help to get started.

*) Project/Source Code Engineering/Import C++ Files
When I open the project this appears grey (not selectable). It can be selected only after opening the class diagram. Why???

Is there a difference between "Import C++ Files" and "Import Source directory"? The effect does not seem any different to me, however the handling is somewhat different:
"Import Source directory":
- Provides options
- A complete directory is imported

"Import C++ Files"
- No options
- Sometimes not selectable (as described above)
- Particular files can be selected

*) I would like to have a list of all source files (headers and implementation) related to the project displayed in the project browser. Is that possible???

*) I have found that I can set the source code path in the "Tools/Options/Source Code Engineering/C++" menu. However these settings are not project specific but apply to all projects. Is it possible to set this path on a per project base??

Thanks a lot for your help!
Best regards,
Christian

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: Importing Source Code Files (newbie questions)
« Reply #1 on: June 12, 2007, 01:02:03 pm »
The Import C++ Files command imports classes onto the current diagram and adds all classes into the same package as that diagram.  It will be selectable when a diagram is open.

The Import Source Directory imports classes into the current package, and will create packages as specified in the options.  It will then optionally add new classes onto a diagram for each package.  It will be selectable when the selection in the project browser is not a root node.

For a list of source files you'll need to set up component types to import, (http://www.sparxsystems.com.au/EAUserGuide/import_component_types.htm) use import source directory and check the 'Import defined components' option.