Book a Demo

Author Topic: Labels on data object hidden  (Read 17882 times)

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Labels on data object hidden
« on: May 10, 2010, 02:09:52 pm »


I found it odd that data objects have a label (the name) that can be selected and moved (unlike the name on most entities, actually this is a nice feature).

You can also hide the labels (see image above).

Once hidden though, how do I get the label back?
Help tells me to go Appearance | Show labels
which would be fine if there was such an option.



Suggestions?
« Last Edit: May 10, 2010, 02:20:17 pm by skiwi »
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Labels on data object hidden
« Reply #1 on: May 10, 2010, 03:47:50 pm »
Maybe you only get that option in the context menu of the label.
So al you have to do is select the hidden label and
... oh wait ...
maybe the developer overlooked a minor detail ...  ;D

Geert

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Labels on data object hidden
« Reply #2 on: May 10, 2010, 04:06:19 pm »
I get the Show Labels command but only if there is a non-blank label and the label is hidden. Check the object's name isn't blank.
The Sparx Team
[email protected]

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Labels on data object hidden
« Reply #3 on: May 11, 2010, 08:58:54 am »
Thanks, here is the data object


not sure what you mean by "non blank label", but the object certainly has a name.
« Last Edit: May 11, 2010, 09:39:43 am by skiwi »
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Labels on data object hidden
« Reply #4 on: May 11, 2010, 09:39:03 am »
OK, so the label will exist. If you don't have a Show Labels command then the label isn't hidden, it must be somewhere in view. It could be behind something else (try right-click > Z-Order > Bring to Top on the data object) or it could have been moved off screen (in which case I have no idea how you would find it).
The Sparx Team
[email protected]

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Labels on data object hidden
« Reply #5 on: May 11, 2010, 10:00:02 am »
OK, on each data object I can use F2.
This brings the label up for editing.
But F2 does not work on this one data object.
I also tried bring to front, sent to back, also using tab and cursor keys to move to and select objects - but these don't move to or select labels.
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Labels on data object hidden
« Reply #6 on: May 11, 2010, 10:22:06 am »
Can you select the data object and press Delete to remove from the diagram (NOT Ctrl+Delete!) then drag it back onto the diagram from the Project Browser?
The Sparx Team
[email protected]

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Labels on data object hidden
« Reply #7 on: May 11, 2010, 11:59:30 am »
Thanks.
I deleted the entity from the diagram only, saved diagram, then dragged the entity back into the diagram.
Still the same.
I also tried changing the font and font colour just in case.
Also tried deleting the name, saving, and putting the name back.
Still does not appear on diagram.
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Labels on data object hidden
« Reply #8 on: May 11, 2010, 12:20:27 pm »
Quote
Thanks.
I deleted the entity from the diagram only, saved diagram, then dragged the entity back into the diagram.
Still the same.
Try dragging onto another diagram...

Sounds like the shapescript for a data object is creating a disembodied label and so it could be anywhere on the diagram (including off screen).  It may be quite possible that removing the object for the diagram doesn't remove the label (since it's disembodied).

I'd suggest a brand new diagram, and then zoom to "fit to window" to make sure all diagrammatic items are visible.

HTH,
Paolo
« Last Edit: May 11, 2010, 12:21:08 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Labels on data object hidden
« Reply #9 on: May 11, 2010, 12:47:08 pm »


Spot the odd entity out?

It is quite bizarre that because it is a stereotyped class it did not show the name label.
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Labels on data object hidden
« Reply #10 on: May 11, 2010, 02:23:34 pm »
Quote
[size=18]...[/size]
It is quite bizarre that because it is a stereotyped class it did not show the name label.
No,  it's EAUI...

Manage Complexity,
   .   .   Reduce Ambiguity,
   .   .   .   .   Eliminate Inconsistency!
TM


Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Labels on data object hidden
« Reply #11 on: May 11, 2010, 02:33:39 pm »
Reported as a bug under subject

Artifact Entity stereotyped as a dataobject behaves differently from class stereotyped as a dataobject
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Labels on data object hidden
« Reply #12 on: May 11, 2010, 04:19:45 pm »
Quote
Reported as a bug under subject

Artifact Entity stereotyped as a dataobject behaves differently from class stereotyped as a dataobject
This is actually a manifestation of a more generic problem - the inconsistent treatment of metatypes.

I don't believe (based on my testing and experimentation) that EA has a clear and unambiguous understanding of a metatype.  In particular, although you can define new metaypes via a profile, there is no place to store the correct identity in the DB.

We long-time users have repeatedly advised that the time has come for a redesign/refactor to improve consistency and therefore long-term manageability.

Anyway, we still live in hope - evidence to the contrary notwithstanding...

Paolo
« Last Edit: May 11, 2010, 04:20:44 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Labels on data object hidden
« Reply #13 on: May 12, 2010, 02:13:14 pm »
Some interesting information from my support response (with minor rephrasing)

Quote
The BPMN profile extends the "Artifact" metaclass with the <DataObject> stereotype. It does not extend the "Class" metaclass. If the stereotype is applied to the wrong metaclass then the results will be undefined.

Trying applying the shape script associated with the DataObject stereotype to a variety of different metaclasses (including Artifact and Class) results in all showing their name in a label which can be hidden, and they all have a "Show Labels" command which brings the hidden label back. The fact that one is a class and one is an artifact does not appear to be the cause of the problem.
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Labels on data object hidden
« Reply #14 on: May 12, 2010, 02:35:37 pm »
Quote
Some interesting information from my support response (with minor rephrasing)
[size=18]...[/size]
I'm not sure I understand what Sparx are saying...

I would have thought that if the results were undefined, they are undefined - why do they then define some experimental results?

My comment still stands about not having a clear idea of metaclass...

For example, if the stereotype is defined to «extend» a specific metaclass, why allow it to be applied to another?

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!