Sparx Systems Forum

Enterprise Architect => Uml Process => Topic started by: Henrik Raböse on October 21, 2015, 12:46:05 am

Title: User interface model
Post by: Henrik Raböse on October 21, 2015, 12:46:05 am
Hi,

i've some custom usercontrols drawn. Now i want  to insert these controls in other controls as refernce (link).
How do I do that?

Custom controls:
(http://it-raboese.de/ea/custom_usercontrols_01.png)


Usercontrol to insert custom usercontrol:
(http://it-raboese.de/ea/custum_usercontrols_02.png)

regards
Henrik
Title: Re: User interface model
Post by: Geert Bellekens on October 21, 2015, 04:02:04 am
Select all elements of you usercontrol on the diagram and press Ctrl-c (copy)
Then go to the target diagram and press Ctrl-V (paste)
That will also copy the layout to the new diagram.

Geert
Title: Re: User interface model
Post by: Henrik Raböse on October 21, 2015, 06:06:50 pm
Ok,

this make a copy of elements no reference.
Title: Re: User interface model
Post by: Geert Bellekens on October 21, 2015, 06:30:27 pm
Quote
Ok,

this make a copy of elements no reference.

Why do you think that?
To make a copy of the elements you need to press Shift-Ctrl-V

Geert
Title: Re: User interface model
Post by: Henrik Raböse on October 21, 2015, 09:30:09 pm
By Ctrl+C and Ctrl+V on the same view - the error dialog says:
"Only one instance allowed."

I do not want any instance, I want a reference! ;)

Ok my next test was:
Draw userControl on a view - and on another view in a control again via Ctrl+c ... Ctrl + v.
The result is confusing!
The usercontrols in the project tree moves from the folder to the element on the other view. Shown in the clip.

http://it-raboese.de/ea/ea.avi
Title: Re: User interface model
Post by: Geert Bellekens on October 21, 2015, 09:49:33 pm
You can only show one reference to an element on a single diagram (except in v 12.1, there you can somehow add multiple representations on the same element on a diagram)

Yes, the fact that your elements are being relocated can be quite confusing and annoying.
You can turn this behavior off by unchecking "Tools|Options|Objects|Support for Composite Objects", but then it will be turned off for everything.

Geert
Title: Re: User interface model
Post by: Henrik Raböse on October 21, 2015, 10:03:38 pm
Ok.
Thanks.

Is v12.1 a beta release?
I don't found a download link.


regards
Henrik
Title: Re: User interface model
Post by: Geert Bellekens on October 21, 2015, 10:22:17 pm
Yes, 12.1 is still in beta.

Geert
Title: Re: User interface model
Post by: Sam Courtney on October 24, 2015, 12:52:36 am
12.1 beta link:
http://www.sparxsystems.com/products/ea/12.1/