Book a Demo

Author Topic: Element parent not displayed on the child  (Read 4210 times)

r2bit

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Element parent not displayed on the child
« on: January 08, 2015, 12:00:04 am »
I followed the instructions from http://www.sparxsystems.com/enterprise_architect_user_guide/11/modeling_basics/setelementparent.html for setting an element parent. It says there, that if the parent and the child are not on the same diagran, the parentage is displayed in the top right corner of the child, which it does.. Until i close and reopen the diagram. The link can still be seen in properties, but the parent name simply disappears from the diagram.
Is it a bug or am i doing it wrong?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Element parent not displayed on the child
« Reply #1 on: January 08, 2015, 12:25:11 am »
I guess you mean inheritance, not parentage? If so: the general class is only shown top right if the element is not already on the diagram. Instead EA renders the generalization connector.

q.
« Last Edit: January 08, 2015, 12:26:34 am by qwerty »

r2bit

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Element parent not displayed on the child
« Reply #2 on: January 08, 2015, 12:59:39 am »
Quote
I guess you mean inheritance, not parentage? If so: the general class is only shown top right if the element is not already on the diagram. Instead EA renders the generalization connector.

q.

That's the thing. The parent indicator briefly appears when I add it using the "Set Parents and Interfaces" dialog and simply disappears after i save/close the same dialog window. The parent/general element is not on the same diagram. Sometimes the parentage indicator stays after closing the dialog box, but it never appears again after closing and re-opening the diagram. :S

Hmm.. I just tested it using Class objects and it works as expected with them. Not with deployment objects (devices/nodes/etc) however.
« Last Edit: January 08, 2015, 01:05:35 am by r2bit »

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Element parent not displayed on the child
« Reply #3 on: January 08, 2015, 01:20:22 am »
Hi!


In 11.0.1107, it works for Nodes and Devices -- if the parent (connector target) element is a Class. If you reverse it, so that the source of the connector is a Class and the target is a Node, it doesn't work.
So it appears that it is related to the type of the target (inherited) element, rather than the source (inheriting) element.

There may be some UML spookiness under this (there are skeletons hiding in some pretty unexpected closets in the spec), but I'd go ahead and report it as a bug.


/Uffe
« Last Edit: January 08, 2015, 01:20:50 am by Uffe »
My theories are always correct, just apply them to the right reality.