Book a Demo

Author Topic: delete unused elements  (Read 6113 times)

ufechner

  • EA User
  • **
  • Posts: 85
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
delete unused elements
« on: July 17, 2006, 11:08:37 pm »
Hallo,

it would be helpful, to have a menu entry in the context menu of folders in the project view, to delete all unused elements in a given package.

Doing this manually is a lot of work.

Regards:

Uwe Fechner

armin

  • EA User
  • **
  • Posts: 63
  • Karma: +0/-0
  • mission possible
    • View Profile
Re: delete unused elements
« Reply #1 on: July 18, 2006, 12:41:50 am »
Hi,

there's an easy way to delete unused elements. Press CTRL+F, select search "Find Orphans", run search and select those items in the resultlist you want to delete. Right MouseClick -> delete selected items.....

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: delete unused elements
« Reply #2 on: July 18, 2006, 03:30:14 pm »
Quote
Hi,

there's an easy way to delete unused elements. Press CTRL+F, select search "Find Orphans", run search and select those items in the resultlist you want to delete. Right MouseClick -> delete selected items.....


Yes, but beware: an orphan is an element that doesn't appear on any diagram. That doesn't mean it isn't used somewhere, as a classifier or a type for example. "Find Orphans" is certainly a good way to find candidates for deletion though.
« Last Edit: July 18, 2006, 03:30:58 pm by KP »
The Sparx Team
[email protected]

thomaskilian

  • Guest
Re: delete unused elements
« Reply #3 on: July 21, 2006, 02:37:37 am »
Which raises the question what Uwe means with "unused elements" ;)

ufechner

  • EA User
  • **
  • Posts: 85
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: delete unused elements
« Reply #4 on: July 21, 2006, 03:46:47 am »
Well, I mean orphans, that are not used as types.

I don't have many classes anyway, mainly states, activities etc., so deleting all orphans but classes works fine for me in the moment.

Thank you for the workaround, the find method works really nice.

Regards:

Uwe Fechner
« Last Edit: July 21, 2006, 03:57:48 am by ufechner »