Book a Demo

Author Topic: Creation of ports in class instances  (Read 3272 times)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Creation of ports in class instances
« on: May 16, 2012, 01:47:26 am »
This is a real nuisance:
  • Create a class with a port inside.
  • Now instantiate this class and remove the port inside.
  • Go back to the class and add a new port.
  • EA adds the new port in the instance (fine!)
  • But it re-creates also the previously deleted port(s)
And to make it even worse: EA does not fire OnPre/PostNewElement for any of the automatically created port instances!

The problem is that we have a lot of ports in certain classes and these are used in quite a number of sequence diagrams where we do not need the port instances (why we wanted to delete them). But each time  a new port is added to that class EA starts polluting the instances once again.

Will send a bug report.

q.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Creation of ports in class instances
« Reply #1 on: May 16, 2012, 02:13:44 am »
Additional remark: When the port is added via the diagram it happens as described above. If you add the port via the Add Element icon then EA just adds the port to the class.

EAUI

q.