Book a Demo

Author Topic: Unused classes  (Read 2925 times)

Kjell

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Unused classes
« on: September 26, 2002, 08:14:14 am »
Hello there!

As I am new here I guess I should begin with telling you who I am.

I live in Sweden and I have been working with software developing for about 15 years now.
On my first job after my education the boss told me that I should produce code, not papers, so all I had lerned about documentation was wasted.
After that I have worked on a smaller firm where I am the only developer, and we have mostly smaller projects, so here I have worked after the princip that a structured code is the best documentation.

Until now. One project has grown quite big and it is also clear that it will live for a long time.
Possibly longer than me, I'm 50 soon...

So now I am evaluating EA, and I'm almost shure we will buy it.

As I am new to EA and documenting in general I will probably put some stupid questions in the furure, and here comes the first one:

I have imported all my classes, and I am now working with Analysis, Use case and Sequence diagrams.

When this is done, is there any possibility to find those classes that isn't used any longer?
And perhaps also those methods in the classes that's not used any longer?

It would be nice to feel that EA helped me clean up the code.

CJ

  • EA User
  • **
  • Posts: 288
  • Karma: +0/-0
    • View Profile
Re: Unused classes
« Reply #1 on: September 26, 2002, 09:27:07 am »
G'day,

I'm pretty new to EA, but I think I can answer that one.

Check out the menu item "Relationship Matrix..." under the project menu, and "Element Relationship Matrix" in the on-line help.

I've just tried it, for the first time, to see the relationship between my reverse-engineered (imported) database tables, and it is very very cool.
Cheers and best regards.

rbellia

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • Trample, Haste and First Strike
    • View Profile
Re: Unused classes
« Reply #2 on: September 26, 2002, 09:29:41 am »
Kjell,

There are two features to find unused classes:

1 - Class by Class: Select the class, press CTRL+U
A list with all links to the selected class should appear.
The class is unused if is empty.

2 - Package x Package:
a.Right click on a package you want to inspect, or even on the entire "Logical" folder - select "Open in relationship matrix" - as Source
b.Once in the matrix select the target package - may be the same sorce package.
c.Select the Link types (try the common ones ammong classes, of course)
d.If you find an empty row or column: you have an out of use candidate classe - double check using the 1st. feature

;)
Hope to help