Book a Demo

Author Topic: Selection of multiple classes for delete  (Read 4613 times)

jdall

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Selection of multiple classes for delete
« on: September 19, 2008, 07:48:08 pm »
Having imported an UML model, I had a bunch of unwanted classes,
that I needed to get rid of.
But this turned out to be more than just a simple task... why is 'Delete selected element(s)' not available with selection in the project browser?

Please fix!

My work around was to create a new package, move the classes to it, then delete it.


Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Selection of multiple classes for delete
« Reply #1 on: September 19, 2008, 10:33:56 pm »
Press Ctrl+DEL to delete multiple elements selected in the project browser.

jdall

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Selection of multiple classes for delete
« Reply #2 on: September 22, 2008, 08:11:06 pm »
In my EA7.1 Professional Trial it's only possible to use CTRL+D to delete multiple selected elements in a diagram. It does NOT work with multiple selected elements in the project browser.

Further to support this... the 'Delete Selected Element(s)' menu item is only getting un-ghosted when elements are selected in the diagram view.
If selecting elements in the project browser, the menu item stays in the ghosted state.

Hmmm... really, really strange... now it just worked. Lets try again... nope. It does not work. Tried several times. It does NOT work.

So what's the trick? I'm convinced there is a bug somewhere!



jdall

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Selection of multiple classes for delete
« Reply #3 on: September 22, 2008, 08:24:32 pm »
Solved! The trick is to use CTRL+Delete, and not, as suggested, CTRL+D

Why the heck I hit CTRL+Delete, when I was supposed to hit CTRL+D,  beats me!

So no bug. Only a unlogical user interface ;)

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Selection of multiple classes for delete
« Reply #4 on: September 23, 2008, 09:39:59 am »
On this Help page is a summary of all the scenarios for deleting elements in EA.

http://www.sparxsystems.com.au/EAUserGuide/deletingobjects.htm

You will notice that to delete one or more elements from a DIAGRAM ONLY you use the [Delete] key by itself. To delete one or more elements from the MODEL, which you would do in the Project Browser, you use the [Ctrl]+[Delete] keys. Frank suggested you use [Ctrl] + [Del] (which is what the [Delete] key is called on some keyboards).

You can use [Ctrl]+[D] on a diagram as an additional shortcut to delete single or multiple elements FROM THE DIAGRAM ONLY. It therefore would not work in the Project Browser, because - as I said - that is where you delete elements from the model. As elements can be shared between diagrams, how would EA know which diagram you wanted the element deleted from?

HTH
« Last Edit: September 23, 2008, 09:49:28 am by RoyC »
Best Regards, Roy

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Selection of multiple classes for delete
« Reply #5 on: September 23, 2008, 11:10:16 am »
Hi Roy,

[size=13]Delete vs Destroy vs Remove[/size] may have some relevance...

I understand it is difficult to change the keystrokes, and I personally don't have a lot of trouble with the delete key meaning "remove".  However, the language can be fixed...

It might alleviate a lot of the confusion...

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

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Selection of multiple classes for delete
« Reply #6 on: September 23, 2008, 04:00:04 pm »
Thanks. That is something I have been chewing on too.
Best Regards, Roy