Book a Demo

Author Topic: Able to Change an Interface to an Abstract Class  (Read 4891 times)

Todd Buell

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Able to Change an Interface to an Abstract Class
« on: July 21, 2009, 12:37:27 am »
In our original design we created an interface, call it IFoo. After a few iterations and discussions around the design we determined that we should actually be using an abstract class instead of an interface. I'm trying to make the changes in EA from IFoo to AFoo (the abstract class), however the tool seems to retain that the AFoo is still an Interface after adjusting the properties.

Is it possible in the tool to change an interface to a class?

jkorman

  • EA User
  • **
  • Posts: 99
  • Karma: +0/-0
    • View Profile
Re: Able to Change an Interface to an Abstract Cla
« Reply #1 on: July 21, 2009, 03:20:14 am »
I'm not sure what steps you used but I was able to convert an Interface to a Class by

1. Select the Interface
2. Menu [Element|Advanced|Change Type... and change to Element Type Class
3. Select the "Class" and right click for properties.
4. Clear the Stereotype (Should have been Interface)
5. If you have classes that Realize the "Interface", select the  Realization, right click menu [Advanced|Change Type] and change from Realization to Generalization.

Jim