Book a Demo

Author Topic: How to remove namepace on diagram  (Read 3069 times)

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
How to remove namepace on diagram
« on: July 28, 2010, 11:36:22 am »

I have the above diagram and settings.
How do I stop the namespace showing in the embedded class?

tia

Simon
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: How to remove namespace on diagram
« Reply #1 on: July 28, 2010, 12:04:22 pm »
Hi Simon,

I believe you can't.  But I don't think it's EA's fault.   The more I investigate the problem of namespace and packages within UML, the more I'm convinced it's not correct.

The reason you're getting the "Namespace" is becuase the Potential Reward Class is nested.  So while technically Potential Impact is a Namespace, the "public" name of the embedded class is: Potential Impact::Potential Reward Class.

If you move the class out from under Potential Impact, the "Namespace" should disappear.

Is there a particular reason why the Potential Reward class is nested?

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

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1353
  • Karma: +121/-10
  • Its the results that count
    • View Profile
Re: How to remove namepace on diagram
« Reply #2 on: July 29, 2010, 07:44:06 am »
Thinking about this its probably best to keep namespace shown for nested classes so that its clear on their context. I can imagine certain circumstances where if only the class name is presented for a nested class it may cause confusion.
 
In the example of potential impact and potential reward I believe this should be an inheritance relationship as described in motivation model by OMG and business rules group. I suspect the reason its a nested class is that when drawing the business rules group version of the diagram showing potential reward it appears to be contained in potential impact and EA automatically makes the class a nested class. Paolo is right just drag potential reward out of being a nested class in the browser to fix the problem.
Happy to help
:)

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: How to remove namepace on diagram
« Reply #3 on: July 29, 2010, 10:09:35 am »
Thanks to both of you  [smiley=thumbsup.gif]
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.