Book a Demo

Author Topic: Compartment Lines in Classes  (Read 4391 times)

bctm

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Compartment Lines in Classes
« on: April 10, 2014, 01:24:45 am »
Dear Community,

if a class (or component) has methods and attributes, they get their own compartment - one for methods and one for attributes.

With the "feature visibility" feature (available via the context menu), I can disable the visibility of the attributes as well as the methods. Sadly, the compartments are still visible via the lines in the class - they do not disappear, even though the compartments are empty.

Please check the link below - the ClassA does not have any attributes or methods, while ClassB has both - the visibilty was disabled though.

Example: http://i57.tinypic.com/qn1v0l.png

Is it possible to hide the compartments, too? It would be great if there would be no difference between ClassA and ClassB as soon as I disable the visibility.

Thanks in advance.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Compartment Lines in Classes
« Reply #1 on: April 10, 2014, 02:02:37 am »
Choose Feature&Compartment Visibility and uncheck what you don't want to see.

q.

Nizam Mohamed

  • EA User
  • **
  • Posts: 193
  • Karma: +1/-0
    • View Profile
Re: Compartment Lines in Classes
« Reply #2 on: April 10, 2014, 03:21:21 am »
Which version of EA are you using, unchecking attributes / operations either in
  • Feature & Compartment Visibility of the elements. or
  • In diagram's properties -> Element Tab, disabling Attributes & Operations
removed all the compartments.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Compartment Lines in Classes
« Reply #3 on: April 10, 2014, 09:19:48 am »
It was a relatively recent change to allow the compartment lines to be suppressed (actually to always suppress them if empty) I can't remember which version it was added to, but if you update1 it shouldn't draw the lines.

1 It's possible that you would need to update to v11.

bctm

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Compartment Lines in Classes
« Reply #4 on: April 11, 2014, 06:58:47 pm »
Thanks Nizam! I'm using EA 8 and

Quote
  • In diagram's properties -> Element Tab, disabling Attributes & Operations

did the job. Great ;- )

bctm

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Compartment Lines in Classes
« Reply #5 on: April 11, 2014, 10:25:34 pm »
Aaaand I'm back again. This works for classes, since they always have the line directly after the class name.

But if you have something like a component, which doesn't have any line until attributes or operations are added, it does not work.

Example: http://de.tinypic.com/r/2e4yyqa/8

Even though all visibility checkboxes are disabled, it still shows the first compartment line.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Compartment Lines in Classes
« Reply #6 on: April 12, 2014, 12:15:13 am »
You probably need to update to V11 since there it works as expected.

q.
« Last Edit: April 12, 2014, 12:15:54 am by qwerty »