Book a Demo

Author Topic: Packages and Object Names  (Read 3292 times)

Andy

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Packages and Object Names
« on: January 13, 2005, 07:48:53 am »
Hi,

I have multiple packages and need to be able to quickly spot the difference between the classes that share the same name across the packages.

For instance, if I insert as link, my two classes are named as "PACKAGE1::Error" and "PACKAGE2::Error".  However, if I insert as instances, they become :Error and :Error.  The element properties don't tell you which package an instance came from either.

Is there any way to get EA to include the parent package name in objects?

Alternatively, can I turn off the preceding package name in class diagrams so that I can simply give all my classes very verbose names?

Thanks

Andy
« Last Edit: January 13, 2005, 07:51:02 am by Andy »

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Packages and Object Names
« Reply #1 on: January 13, 2005, 02:01:58 pm »
At the moment, the best way I can think of is to add a constraint for the object, maybe something like {From Package1::Error}.  Double-click on the object and go to the "Constraints" tab on the Object Properties dialog.

To show the constraint on a diagram you would need to right-click on the object, select  "Element Features | Specify Feature Visibility" and tick the "Constraints" checkbox.

There's probably other answers, but it's early and I haven't had a coffee yet...   :(
The Sparx Team
[email protected]

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
Re: Packages and Object Names
« Reply #2 on: January 14, 2005, 12:36:24 am »
I thinks thers a very good point here.
maybe EA should present in some way (either hiden or visible) which package the object comes from.
Recursion definition:
If you don’t understand the definition read "Recursion definition".

Andy

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Packages and Object Names
« Reply #3 on: January 14, 2005, 01:38:11 am »
Thanks for the help guys.

Consider me as voting in favour of a new feature that lets you know which package an object came from ;)

Cheers

Andy

PS.  KP, if you do come up with any more solutions to this problem, please let me know :)