Book a Demo

Author Topic: Number of children?  (Read 2490 times)

Hugo

  • EA User
  • **
  • Posts: 44
  • Karma: +0/-0
  • Where there's a will there's a way.
    • View Profile
Number of children?
« on: August 31, 2006, 12:12:15 pm »
Hi

I have imported a ton of C++ code into an experimental EA project.

This has resulted in a large number of classes appearing beneath "Class Model" in the model's tree view, but I have no idea how many classes this actually is (and several people are asking this question)

Is there any way that I can select a tree view node and see how many children it has?

How about adding a new value to the properties of a package called "Number of child elements" or something?

Thanks
Hugh

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Number of children?
« Reply #1 on: September 01, 2006, 01:55:46 am »
You could possibly use the SQL query type of ¨Find" for this.  I typically do it externally though using MSAccess or pgAdminIII

bruce
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Number of children?
« Reply #2 on: September 04, 2006, 03:57:29 pm »
I have a couple of possible suggestions.

Export the package to XMI, import it into an empty model and then use the Project Statistics (under Project Menu)

Alternatively write a simple addin that could look at the children of the currently selected package.  The second option has the advantage that you could add it to the context menu of the tree if you're going to use it reguarly.