Book a Demo

Author Topic: Change an object to a class  (Read 2100 times)

bouche

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Change an object to a class
« on: March 12, 2009, 06:51:39 am »
I've inherited a model, and there is a class diagram that was created using an 'object' instead of a class, however, the stereotype is set to Control.  

I'm trying to generate code with the classes and controllers, but the 2 items that were created as objects (different icon - red and white) will not get generated.  

How can I change them, without deleting them? They already have methods and attributes that I don't want to recreate.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Change an object to a class
« Reply #1 on: March 12, 2009, 09:10:44 am »
Quote
How can I change them, without deleting them?
From the main menu, select "Element > Advanced > Change Type".
The Sparx Team
[email protected]