Book a Demo

Author Topic: Why don't classes show in the Proj. View?  (Read 3423 times)

msisson

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Why don't classes show in the Proj. View?
« on: August 22, 2004, 10:20:19 pm »
Hi all.
Conceptually, I'm trying to model my C# classes.  I'm starting with a class diagram and adding classes.  

When I'm adding classes to my class diagram they don't show up in the project view.  Shouldn't they?  What if I want to use those same classes on other diagrams?

TIA,
mark

Andreas_G

  • EA User
  • **
  • Posts: 125
  • Karma: +0/-0
  • And that's the way the cookie crumbles.
    • View Profile
Re: Why don't classes show in the Proj. View?
« Reply #1 on: August 22, 2004, 11:34:15 pm »
Hi Mark,

since I know no possibility that the class is in a diagram but not in the projectview, I think the class has to be in th projectview.

have you tried to search the class in the projectview?

Select the class in the diagram and press Alt+G. Now the class should be selected in the projectview.

regards,
Andreas
bye
Andreas

thomaskilian

  • Guest
Re: Why don't classes show in the Proj. View?
« Reply #2 on: August 23, 2004, 07:01:26 am »
Select the class in question by clicking on it in the diagram. Press ALT+G. Now you have them located in the browser.

EDIT: Just played around in my playground EA. Funny thing is that I have also classes in diagrams which are not located in the browser  :o How that ???
« Last Edit: August 23, 2004, 07:15:03 am by thomaskilian »

msisson

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: Why don't classes show in the Proj. View?
« Reply #3 on: August 23, 2004, 09:37:47 am »
This seems like a bug to me??????

I'm not sure how I got into this situation but I have a diagram that references classes that are in a folder outside of the folder where the current diagram is located.  All of my classes on the diagram look like this:

View::Customer,  View::Order  etc.

But, there are no Customer or Order classes in my root View folder in the project browser.

It tis a boog, no?  (If so, this isn't to good is it!!!)

tia
mark

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Why don't classes show in the Proj. View?
« Reply #4 on: August 23, 2004, 03:46:46 pm »
I think I may have your answer to what has happened.

In a recent build (can't remember the exact one) there was a bug that allowed you to create diagrams under the root node.  You can then create classes (and other elements) on that diagram, which puts them directly under the root node, which is never meant to happen.

It doesn't cause any problems until the model is reloaded, but after that EA will not display those elements any longer.

In order to recover those classes you will actually need to edit your database to move their package.

Then I would recommend moving that diagram into another package to prevent it happening again.

Simon