Book a Demo

Author Topic: Classes, Objects & Class Diagrams  (Read 3269 times)

dimka9

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Classes, Objects & Class Diagrams
« on: November 16, 2003, 12:45:31 pm »
I am relatively new to EA, please be patient  :), there is definately something wrong with HOW I use EA to do a very simple thing :
I have made some class diagramm containing several interface definitions, the relations are not important.. Now, trying to create another class diagramm and show the usage of the interfaces I have defined in the first digramm I do this:  define a new class, which will be the implementor of the interface/s, and dragging the interface definitions from the project view into new diagram to inherit it by implementor class.. But once I drag the thing, it's being instantiated automatically by EA, so that it becomes an object.. I don't need them like objects! I need 'em as is - as class definition. Can't we have the same class seeing in several diagramms? Am I doing something terribly wrong?

Bruno.Cossi

  • EA User
  • **
  • Posts: 803
  • Karma: +0/-0
    • View Profile
Re: Classes, Objects & Class Diagrams
« Reply #1 on: November 16, 2003, 11:48:16 pm »
When you drag the object from the Project Browser to the diagram, hold the Ctrl key... when you drag the object, a window will appear, asking you whether you want to create new instance of the object or you not... you can also set the default behaviour in Tools > Options > Diagram > Behaviour > Auto Instance.

Hope this helps!

dimka9

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Classes, Objects & Class Diagrams
« Reply #2 on: November 17, 2003, 12:49:37 am »
Thanks a lot !

Bruno.Cossi

  • EA User
  • **
  • Posts: 803
  • Karma: +0/-0
    • View Profile
Re: Classes, Objects & Class Diagrams
« Reply #3 on: November 17, 2003, 08:07:15 am »
You're welcome