Book a Demo

Author Topic: Help! Import disabled in the Code Generation bar  (Read 5667 times)

alekk

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Help! Import disabled in the Code Generation bar
« on: December 09, 2004, 08:51:26 am »
Hi,
for some reason there is no source code import option in the right-click menu (I clicked everywhere) and the Import tool button is disabled. Any idea why this happens?
Thansk,
Alek

thomaskilian

  • Guest
Re: Help! Import disabled in the Code Generation b
« Reply #1 on: December 09, 2004, 11:34:07 am »
Did you specify a language for it?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Help! Import disabled in the Code Generation b
« Reply #2 on: December 09, 2004, 01:30:49 pm »
If you're talking about what I think then it will be disabled if there is no active diagram.  Also if you right click on a diagram then there is "Import Source File(s)" and then you can select the language to import.

Alternatively you can do a package import (which doesn't need a diagram active)  To do this right click on a package in the project view and select "Code Engineering" | "Import Source Directory" or select from the main menu "Project" | "Source Code Engineering" | "Import Source Directory".

Simon

benc

  • EA Administrator
  • EA User
  • *****
  • Posts: 200
  • Karma: +0/-0
    • View Profile
Re: Help! Import disabled in the Code Generation b
« Reply #3 on: December 09, 2004, 02:50:58 pm »
Some additional possibilities to the above :

* Do you have security enabled for your model? If so, your user may not have code engineering privelages and the import options will be disabled.
You'll need to set these by logging in as admin, (or disable security entirely)

* Do you have version control setup for the package? If so, import options will be disabled if you have not checked out the package.

* Are you running the Lite version of EA - this is readonly, so import will be disabled.

Also note, the import options are removed from the context menu entirely if:

* You are running the Desktop version of EA (or tial version in desktop mode). Code engineering is only available in pro and corporate version.

* The current diagram is not a structure (class) diagram.

I hope that explains.

Regards,
Ben


alekk

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Help! Import disabled in the Code Generation b
« Reply #4 on: December 10, 2004, 07:46:20 am »
Thanks a lot!
I have Desktop version, so that exlains it.. The confusing part is that I used this feature a while ago and it worked. So I guess it was the trial version back then.

Thanks again,
Alek