Book a Demo

Author Topic: Can't suppress inherited features  (Read 3615 times)

Jonathan Bailey

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Can't suppress inherited features
« on: September 18, 2009, 04:38:33 am »
I've reverse engineered a folder of C# code, which includes classes that implement interfaces implicitly. In order to reduce visual clutter in my class diagram, I want to suppress showing the implemented features. However, looking at the Feature Visibility dialog, both Show Attributes and Show Operations are already unchecked, so it doesn't appear that I can hide them this way.

I have found a workaround, which is to mark each implemented feature with the Implementor stereotype, then hide features with the Implementor stereotype. However, this will be a very time-consuming manual process.

Can anyone offer additional suggestions?

Thanks

Jon.
« Last Edit: September 18, 2009, 05:05:38 am by mappingpioneer »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Can't suppress inherited features
« Reply #1 on: September 18, 2009, 04:19:38 pm »
Well, that is because the "Inherited Features"/"Show Attributes" and "Show Operations" is meant to show/not show the operations of a superclass/interface which are not repeated on the class.
There is no option to hide overridden/implemented features. (In fact EA does not have a notion of that concept, there is no difference in EA between an overridden/implemented feature and a regular feature)

I this is really important for you you could write a little script that marks each feature with the appropriate stereotype if it has the same signature as a feature on the superclass/interface. And then set the option to hide the features that contain this stereotype.

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Can't suppress inherited features
« Reply #2 on: September 18, 2009, 04:31:25 pm »
Quote
[size=18]...[/size]
(In fact EA does not have a notion of that concept, there is no difference in EA between an overridden/implemented feature and a regular feature)
[size=18]...[/size]

Geert
Yes, this is one REALLY unfortunate aspect of EA (and, I guess, most modelling tools) which I identified (and posted about) when I first started using EA about six years ago.

In my view, inheritance and realization are transforms whose details should be specified in the connector.  That way, you can compare what you see in both the client and the supplier and the transform definition and make intelligent guesses as to what is going on.

My benchmark is the ability to handle the transformations available under Eiffel.  If a tool is able to do that, then it gets a "gold star and koala stamp".

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