Book a Demo

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

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Labels on data object hidden
« Reply #15 on: May 13, 2010, 07:18:55 am »
Prompt work from sparx support
Quote
Here's the problem: the shape script lookup for the main shape searches for stereotype without worrying what the extended metaclass is, but the lookup for the label shape searches for the stereotype and extension. It shouldn't make any difference, until somebody applies stereotypes to the wrong metaclass.

The fix is to make the main shape search stricter, which won't help you and will in fact remove the shape script from this one object - you will have to replace your stereotyped class with a stereotyped artifact. The fix is also likely to break a number of diagrams that are currently "wrong, but look how you want them to look".
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 #16 on: May 13, 2010, 10:08:31 am »
Did Sparx say they were going to make the fix?

There's a pile of bugs where the fix is obvious, but haven't been implemented for years...

Nevertheless, an attempt to make EA more consistent!

You can't  beat:
Consistency, Consistency, Consistency! 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 #17 on: May 13, 2010, 11:56:49 am »
Quote
The fix is also likely to break a number of diagrams that are currently "wrong, but look how you want them to look".
Quote
The issue has been passed on for a decision on whether to fix or not. If fixed it will be applied to a future release of EA.

The community might like to discuss this.
How does it respond to a fix that breaks existing diagrams.

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 #18 on: May 13, 2010, 01:32:22 pm »
Quote
The community might like to discuss this.
How does it respond to a fix that breaks existing diagrams.
Yes!

But ONLY if Sparx takes note of the community view, otherwise we're just...

In my view, it deserves it's own topic.

I'm having enough trouble trying to make models that are RIGHT look right - never mind getting those that are WRONG...  See: Consistent Diagram Item rendering proposal

The whole point of a modelling program IS to produce valid models.  Otherwise you have just a drawing program of which there are many, MUCH better...

If your diagrams can ONLY look right by having an incorrect model, you got bigger problems...

Besides, in systems, "Two wrongs NEVER make a right".

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

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Labels on data object hidden
« Reply #19 on: May 13, 2010, 02:16:15 pm »
Quote
The community might like to discuss this.
How does it respond to a fix that breaks existing diagrams.

Actually the message you were supposed to get from support was that your model is wrong and to fix it you should change your stereotyped class to a stereotyped artifact. We won't be breaking anyone's diagrams.
« Last Edit: May 13, 2010, 02:17:03 pm by KP »
The Sparx Team
[email protected]

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 #20 on: May 13, 2010, 02:32:00 pm »
Quote
Actually the message you were supposed to get from support was that your model is wrong and to fix it you should change your stereotyped class to a stereotyped artifact. We won't be breaking anyone's diagrams.
Thanks for that Neil,

As I implied above, I hadn't actually seen a wrong model produce a good output...

So - can you confirm exactly what the fix will be?  As I understand the discussion so far, there are implications for those of us creating MDGTs.

Paolo
« Last Edit: May 13, 2010, 02:32:29 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 #21 on: May 14, 2010, 06:32:17 am »
Quote
Actually the message you were supposed to get from support was that your model is wrong and to fix it you should change your stereotyped class to a stereotyped artifact. We won't be breaking anyone's diagrams.
Here are the messages I got, verbatim, the highlighting is mine
Quote
I'm assuming that you're referring to the BPMN DataObject element. The BPMN profile extends the "Artifact" metaclass with the <DataObject> stereotype. It does not extend the "Class" metaclass. If you try to apply the stereotype to the wrong metaclass then the results will be undefined.

Anyway, having said all that, I have tried applying the shape script associated with the DataObject stereotype to a variety of different metaclasses (including Artifact and Class). They all show their name in a label which can be hidden, and they all have a "Show Labels" command which brings the hidden label back. So I don't think the fact that one is a class and one is an artifact is the cause of the problem.
Quote
Here's the problem: the shape script lookup for the main shape searches for stereotype without worrying what the extended metaclass is, but the lookup for the label shape searches for the stereotype and extension. It shouldn't make any difference, until somebody applies stereotypes to the wrong metaclass.

The fix is to make the main shape search stricter, which won't help you and will in fact remove the shape script from this one object - you will have to replace your stereotyped class with a stereotyped artifact. The fix is also likely to break a number of diagrams that are currently "wrong, but look how you want them to look".

I have passed the issue on for a decision on whether we fix or not. If we do it will be applied to a future release of EA.
In fact no suggestion to change my diagram was made by support,
not surprising since I had already diagnosed the issue.

The point of this discussion, and bug report was that, when I first raised this problem, a problem that had myself and my colleagues stumped, and was not obvious at all to others who helped in this forum,
was the anomalous and unexpected behaviour of an object in a diagram, with no indication from the tool as to what might be causing the problem, ie the name/label not to show.
Neither was there any indication in the Help documentation that there were cases where the "Show Label" context menu item might not be available.

Its clear to me that this is a bug, and it needs fixing.
thanks
Simon
« Last Edit: May 14, 2010, 06:42:35 am by skiwi »
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.