Author Topic: Default name for new element from profile  (Read 4619 times)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13240
  • Karma: +553/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Default name for new element from profile
« on: December 15, 2015, 11:35:40 pm »
Hi,

I'm making a new UML profile with diagram and toolbox profile.
All seems to be working fine, except for the default name of the new elements.
I'm extending the GUIElement and for some reason a new elements always get the default name "UI Control", and not MyStereotype1 as I've seen with other profiles.

Does anyone know what determines the default name? I can't seem to find the related help topic.

Thanks

Geert
« Last Edit: December 16, 2015, 12:07:12 am by Geert.Bellekens »

MeryemAdb

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: Default name for new element from profile
« Reply #1 on: December 16, 2015, 12:53:07 am »
The documentation says that you have to define your stereotype as a metatype (see http://www.sparxsystems.com/enterprise_architect_user_guide/12/extending_uml_models/defining_a_stereotype_as_a_met.html) but testing it, it does not seem to work for auto naming  for a GUIElement :-/

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13240
  • Karma: +553/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Default name for new element from profile
« Reply #2 on: December 16, 2015, 07:13:47 pm »
I thought is was something like that.
I did that for the other stereotypes extending other UML types and that all worked fine.

I'm afraid EA does something specific with the GUIElement that prevents the regular mechanism to work.

I'll send a bug report.

Geert

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13240
  • Karma: +553/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Default name for new element from profile
« Reply #3 on: December 21, 2015, 02:41:02 pm »
I sent in a bug report to Sparx and I got following response:

Quote
Our developers advised that this is an expected limitation for User Interface elements. All User Interface elements are assigned the same name (i.e. UI Control) when created (e.g. try adding element from User Interface Toolbox and check its name), this is because it does not require the name to be unique.
 
For any extending GUIElement element they would also be assigned the same name for the same reason.
 
Sorry we can't be of more help. If you have further questions or issues please let us know.

My response:
Quote
I did notice the behavior of standard GUI Elements.
Frankly I'm a bit disappointed in the "It's not a bug but a feature" response.
I don't really care whether you call it a bug or a feature, I just would like it to get fixed.

So if you can't accept it as a bug, can you please make it into a feature request?