Book a Demo

Author Topic: Problem using 4.5  (Read 3718 times)

nikhil

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Problem using 4.5
« on: May 08, 2006, 09:14:28 am »
I am trying to use the reverse engineering portion of my EA installation. I have V4.5.  Whenever I "load" the diagram (by double ckicking on it) I get a grayed out a code gen toolbar.  If I right click on it, all I get is the XMI option.  I have the desktop edition.

Please let me know what's wrong...

Regards,
Nikhil

Bruno.Cossi

  • EA User
  • **
  • Posts: 803
  • Karma: +0/-0
    • View Profile
Re: Problem using 4.5
« Reply #1 on: May 08, 2006, 09:54:02 am »
Hi,

the Desktop Edition does not support source code engineering. Read more here: http://www.sparxsystems.com.au/products/ea_editions.html

Hope this helps!
Bruno

Quote
I am trying to use the reverse engineering portion of my EA installation. I have V4.5.  Whenever I "load" the diagram (by double ckicking on it) I get a grayed out a code gen toolbar.  If I right click on it, all I get is the XMI option.  I have the desktop edition.

Please let me know what's wrong...

Regards,
Nikhil


nikhil

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Problem using 4.5
« Reply #2 on: May 11, 2006, 10:49:55 am »
OK,


So I went and upgraded to 6.1 and the Professional edition.  Now how do I import a directory or jar??  If there are roughly 2000 classes and I import one ata time, its going to take too long.  Also how will EA resolve the relationsships?

nikhil

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Problem using 4.5
« Reply #3 on: May 11, 2006, 11:57:48 am »
Good News (at least partially),

Though cryptic, I was able to find where the import directory option was and import all the classes into the model.  The problem still is the creation of diagrams to associate the packages.  is there anyway to automate that?

Regards,
Nikhil

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Problem using 4.5
« Reply #4 on: May 11, 2006, 01:52:39 pm »
Nikhil,

Yes there is. I don't have EA open just now but there is an option button (or radio button) that allows you to just import classes or to create diagrams and classes. Check as appropriate.

There is also one that allows you to import a hierarchy of directories. Or, perhaps that always happens. I just remember that you can do it.

Let me know if you don't find the option. If not, I'll import something and find the correct setting for you.

David
No, you can't have it!

nikhil

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Problem using 4.5
« Reply #5 on: May 11, 2006, 02:07:43 pm »
David,

I did import a directory source tree, which imported all the source.  However it did not relate classes by package, nor did it do the inter-class relationships.  There are over 1800 classes in the hierarchy and I wanted to be able to assess the extent of coupling, inheritance, etc.

I can do all the relating manually by looking up the code in Eclipse and trying to build out all the relationships.  That's not what I want to do...

Best regards,
Nikhil



«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Problem using 4.5
« Reply #6 on: May 11, 2006, 02:45:28 pm »
OK. I will try to get to this sometime over the next few hours. I believe I have successfully done this in the past. I'm sure Sparx would agree with you that building the relationships by hand does not make sense. As far as I can see that is the sort of problem we're trying to solve, not create.
No, you can't have it!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Problem using 4.5
« Reply #7 on: May 11, 2006, 03:24:14 pm »
As Midnight said, the import source directory dialog has an option for creating diagrams for each package.  And will add all classes imported to the diagram for that package.

Other diagrams need to be created manually because it takes a human to tell what diagrams would be of use.  Finally, EA doesn't create relationships between packages.  Only the classes contained in them.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Problem using 4.5
« Reply #8 on: May 11, 2006, 03:41:51 pm »
Hi again Nikhil,

I did an import of a fairly large directory tree. Lots of classes, etc. This was in C#, and I chose to create a package for each source directory - over the advice of the EA dialog suggesting the default option instead. There is a diagram showing the classes in each package. The packages themselves do not show up on the diagrams.

I did get a hierarchy of packages, with a diagram in each. I do have some explicit links between classes showing on the diagrams. I have not evaluated which conditions do or do not produce the link.

Where an attribute of one class is of a type defined in the same directory the class is properly typed, and sometimes (perhaps always, see above) is lined by an association. Where an attribute is typed via an interface or a class external to the directory I have not yet seen a link but have not done a detailed search.

You may have more luck creating a package for each namespace (as EA urges you to do).

I just finished doing another import, with the suggested option - create one package per namespace - as I mentioned above. As I remembered from my EA 4.x days this produced exactly what I would have expected and wanted. All appropriate links are shown, including generalizations and associations.

So, we you to try it again, with the options set to create new classes (assuming you are using a fresh, empty model), not to synchronize (since your model has nothing when you do the first import), and to create one package per namespace. Please let me know if this works; if it does not, please let me know exactly what is missing, and I'll look at this again.

David
No, you can't have it!