Book a Demo

Author Topic: Cleanup Projectc browser  (Read 3775 times)

wuz

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Cleanup Projectc browser
« on: March 31, 2008, 10:03:35 pm »
Hi all,

is there a way (shortcut) to remove all elements from the Project Browser which are not used in a diagram? When u delete an element from the diagram it always remains in the project browser.

Thx and kind regards

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • Aren´t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Re: Cleanup Projectc browser
« Reply #1 on: March 31, 2008, 11:13:22 pm »
Quote
Hi all,

is there a way (shortcut) to remove all elements from the Project Browser which are not used in a diagram? When u delete an element from the diagram it always remains in the project browser.
Quote

When you creat a diagram object, you only create a reference to the model object. So deleting an element removes the link to the object, not the element itself.

Pressing Ctrl-U will show you whether an object has references in diagrams but I am sure you can set up a search/view for unreferenced objects.
Removing several elements from a mode at once is not supported by
EA, however there are two workarounds:
- Use an addin like TimeArchitect which are able to handle multi selections
- Move all objects you would like to get rid off in a temporary package and delete the package from the model tree.

Oliver

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Cleanup Projectc browser
« Reply #2 on: March 31, 2008, 11:22:14 pm »
You can usually delete an element from the entire project by using control-delete. [This does not work on packages though.] EA will prompt you for confirmation. [You can turn the prompt off, but that might not be wise.]

This will take the element off your diagram, and out of the Project Browser. Of course, since the element is completely removed from the project, it will disappear from other diagrams as well. All connectors to that element will also be removed.

David

[EDIT: You cannot undo this operation, so make sure you want the element(s) in question gone.]
« Last Edit: March 31, 2008, 11:23:10 pm by Midnight »
No, you can't have it!

Jan ´Bary´ Glas

  • EA User
  • **
  • Posts: 408
  • Karma: +0/-0
  • Bary
    • View Profile
Re: Cleanup Projectc browser
« Reply #3 on: March 31, 2008, 11:40:36 pm »
What you are after may be the Orphans Search.
From a root of your model start a new search (Ctrl+F shortcut), Search method: Find Orphans

You get a list of all elements not used in diagrams. Now you may easili delete them.

I do something more. I copy such elements somewhere (Bin folder) and export them to have a copy of all texts for undelete. Now it is ready to be deleted.
Jan 'Bary' Glas

Transition Technologies

  • EA User
  • **
  • Posts: 85
  • Karma: +0/-0
    • View Profile
Re: Cleanup Projectc browser
« Reply #4 on: April 01, 2008, 12:19:56 am »
You can also use ALT+G shortcut. I do it this way. Select the object, which I want to remove in the main window, than ALT+G and that will indicate where is it in the Project Browser.Than delete it from the browser.
Regards,
Transition Technologies
Authorized Reseller and Training Partner of Sparx Systems
www.ea.tt.com.pl

Jan ´Bary´ Glas

  • EA User
  • **
  • Posts: 408
  • Karma: +0/-0
  • Bary
    • View Profile
Re: Cleanup Projectc browser
« Reply #5 on: April 01, 2008, 12:36:30 am »
I use both Ctrl+U and Ctrl+G, but I think wuz was requesting clearing a repository already full of orphans.

wuz, did we help you?
Jan 'Bary' Glas