Book a Demo

Author Topic: Editing of class properties  (Read 4515 times)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Editing of class properties
« on: March 20, 2013, 04:24:24 am »
I wonder why nobody complained (loud enough) about the bad support for editing class properties, especially with attributes, methods and parameters. Right now, when you want to edit class attributes, a new window opens and the class properties go away. Instead, the attributes should show in a separate view of the properties window right hand side of the general properties. Further if you need to edit the methods, they could appear in the same view instead of the attributes. For the parameters of methods a 3rd view could open right of the first two to allow in-line editing of methods and parameters.

Thoughts?

q.

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Editing of class properties
« Reply #1 on: March 20, 2013, 05:58:46 pm »
Hi,

with Shft+Ctrl+F9 you can add attributes and inline edit them.
with Shft+Ctrl+F10 you can add operations and inline edit them.

Best regards,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Editing of class properties
« Reply #2 on: March 20, 2013, 10:00:12 pm »
That does not much help seeing all relevant information at a glance. It always swaps between different views and hides relevant information. Yesterday I entered a bunch of classes (from Objective C and thus manually). It was really a pain to enter data that way.

What I actually did was the following: copy the .h file into the notes of the class. Open the attributes window (two clicks or that crude keyboard shortcut). Now remember the attribute data since when you select one existing the notes of the focused class disappear until you click New. Even worse with operations. To enter the parameters you switch to even another view after having entered and saved the method name and other attributes.

I have no idea who had designed that GUI, but likely someone who never used it.

q.
« Last Edit: March 20, 2013, 10:07:51 pm by qwerty »

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Editing of class properties
« Reply #3 on: March 20, 2013, 10:26:01 pm »
Hi,

you are right: It's terrible to enter a lot of attributes.

Maybe consider:
1. Edit the attributes\operations with your favorite editor in your language
2. Import it as existing or new class
3. Drag the attributes\operations to your class (if it was a new class)

Best regards,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Editing of class properties
« Reply #4 on: March 20, 2013, 10:45:27 pm »
I would have done it this way (and probably most user do it so), but as said I was utilizing Objective C which can't be imported. Probably it's the best to write an importer for OC myself...

q.

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Editing of class properties
« Reply #5 on: March 27, 2013, 06:37:34 am »
Quote
Right now, when you want to edit class attributes, a new window opens and the class properties go away. Instead, the attributes should show in a separate view of the properties window right hand side of the general properties. Further if you need to edit the methods, they could appear in the same view instead of the attributes. For the parameters of methods a 3rd view could open right of the first two to allow in-line editing of methods and parameters.
Couldn't agree more.

Another case is editing connector properties.
Why can't the properties dialogue include (ie consolidate) other options (perhaps as additional tabs/panes) such as
* foreign keys
* line style
* pin ends
* appearance
* set label visibility
even if some of these are retained (duplicated) in the context menu
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.