Author Topic: TIP: Pseudo Feature Drag-and-Drop  (Read 3239 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
TIP: Pseudo Feature Drag-and-Drop
« on: June 24, 2005, 12:10:19 am »
I have previously suggested to the Sparxians that they implement the ability to Drag-and-Drop Features (Attributes and Operations etc) between Classes.   8) 8) 8)

In that suggestion I noted that something like the pseudo Drag-and-Drop they've implemented with moving connectors (Shift-Left-Click) would be a nice interim... 8)

Today, I got to thinking consistently and orthogonally and it seemed to me I could emulate that last idea with EXISTING EA (inline) functionality...  :o

[size=13]SO... If you've every wanted to easily move/copy  features between classes... Read on![/size]

First of all you need to understand inline feature editing.

Select a Class with a feature (Attribute or Operation).  Select the feature, press F2.  You'll see some aspect of the feature highlighted.  Type away and you are overwriting the aspect (name, stereotype, parameters etc).

Press Home, press Shift-End.  You now have the entire feature selected.  (At least the part that is rendered - Constraints, for example, aren't captured this way).

Press Copy.

Goto another Class.  

To override an existing feature, go through the selection process above and press Paste!

To add the feature to the target Class - press Ctrl+Shift+F9 (for Attribute) or Ctrl+Shift+F10 (for Operation).  Reselect the whole (new) feature, press Paste!

1)  You've just saved yourself a lot of work!
2)  You've been consistent in your replication!


Now, if the Sparxians can just add the real thing... 8)

Enjoy!  ;D
Paolo

BTW: Sorry if you ALL knew how to do this already....
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Re: TIP: Pseudo Feature Drag-and-Drop
« Reply #1 on: June 24, 2005, 12:39:10 am »
Hey, easy with those smilies  >:( >:( >:(

Dani

  • EA User
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Re: TIP: Pseudo Feature Drag-and-Drop
« Reply #2 on: June 24, 2005, 01:04:02 am »
Alternatively you can drag an attribute or operation from a class in project view onto a class on your diagram, which does a copy. To do a move you can drag the attribute/operation from one class in project view to another class in project view.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: TIP: Pseudo Feature Drag-and-Drop
« Reply #3 on: June 24, 2005, 01:32:49 am »
Quote
Alternatively you can drag an attribute or operation from a class in project view onto a class on your diagram, which does a copy. To do a move you can drag the attribute/operation from one class in project view to another class in project view.
Thanks Dani,

Your technique is BETTER than mine!

Sheepishly, :-[

Paolo
« Last Edit: June 24, 2005, 01:33:48 am by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!