Book a Demo

Author Topic: Hiding operations on class elements  (Read 3088 times)

Martinigue

  • EA User
  • **
  • Posts: 63
  • Karma: +0/-0
  • BlackBerry is a lifestyle
    • View Profile
Hiding operations on class elements
« on: March 07, 2008, 10:09:09 pm »
Hello,
I have some operations hidden on their corresponding class elements; after I add a new operation it is displayed by default and to hide it from all diagrams I have to go through all of them (diagrams) and manually 'switch' the visibility checkbox off. Is there any way to enforce operations visibility on a global scale (throughout all diagrams where that particular element gets displayed)?

peter.zrnko

  • EA User
  • **
  • Posts: 253
  • Karma: +0/-0
    • View Profile
Re: Hiding operations on class elements
« Reply #1 on: March 10, 2008, 06:33:58 pm »
Using EA UI this is possible only for connectors "Hide connector in other diagrams".
Peter

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Hiding operations on class elements
« Reply #2 on: March 10, 2008, 10:17:41 pm »
Hey Martinique & Peter,

I think the best you can do - and it is not much of a 'best' - is to modify the New Diagram Defaults visibility settings. Use the Tools | Options | Diagram dialog.

Note that this will only affect new diagrams - those created after you make the change. I do not think it is retroactive. It may not affect diagrams created through automation. [I'm pretty sure it does not, unless this changed recently.]

Of course you will have to set the visibility of the operations you wish to hide. Each one must be set. This can be a real PITA. You can create attributes by using in-line entry to type in the entire (adorned) attribute string, complete with visibility indicator. If you get the string absolutely correct EA will parse it out and you're set. I don't know if this works for operations, but it might. Getting everything perfect with an operation might be tricky though, particularly since you'll be looking at a very small window into the string as you type.

Setting this up in the dialog is all well and good for one or two entries. But for a lengthly list it quickly becomes a burden. And the drop-down really hinders things. After all, most of the options have the same accelerator key (P). We need some kind of short cut that enters the value of common options, rather than just navigating to the drop-down.

[Sparxians: Please read the above suggestion.]

As to diagram properties, you're left out in the cold. Sometimes you have to set them on each diagram. [But not always, things could be worse.] While the new tabbed dialogs are nice, one monumental pain is having to walk through the tabs each time; the diagram properties dialog has neither memory of the previous tab, nor shortcuts to open with a specific tab (ala the Settings dialogs). Combined with the loss of the Apply button, this can greatly increase the keystrokes, and the frustration, of setting diagram properties.

I raised these with Sparx when tabbed dialogs first came out - during an earlier beta. The closest I got was a note relating to the Apply button (I think). They recognized the issue, and would look into a possible solution when (if) there was time.

[Sparxians: Please note the prior two paragraphs.]

 :o  OK, enough of that. Rant ends...

David
« Last Edit: March 10, 2008, 10:18:23 pm by Midnight »
No, you can't have it!