Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: MatthiasWald on September 25, 2004, 07:50:39 am

Title: Synchronization of Project Browser and Diagram
Post by: MatthiasWald on September 25, 2004, 07:50:39 am
Is it possible to keep diagrams and entries in packages in sync? Creating elements in diagrams also creates the
elements in the project browser. Element removal is not reflected in the project browser leaving stale elements.
Title: Re: Synchronization of Project Browser and Diagram
Post by: Bruno.Cossi on September 25, 2004, 11:55:29 am
This is a correct behaviour. Removing an element from a diagram should not delete it from the project browser (and therefore from the whole model) as the same element can be displayed on multiple other diagrams.

Bruno
Title: Re: Synchronization of Project Browser and Diagram
Post by: thomaskilian on September 25, 2004, 12:15:16 pm
Instead try CTRL+DEL.
Title: Re: Synchronization of Project Browser and Diagram
Post by: MatthiasWald on September 25, 2004, 01:17:30 pm
Thanks a lot for the replies. The CTRL-DEL is what I was
looking for. Of course the elements should not be removed automatically when they are used in other diagrams.

Thanks again.

Regards

Matthias
Title: Re: Synchronization of Project Browser and Diagram
Post by: MatthiasWald on September 27, 2004, 06:40:30 am
Maybe it would be nice to be asked to delete the element from the model when there is no other reference to a diagram. This sounds like the normal reference counting to be implemented.
Title: Re: Synchronization of Project Browser and Diagram
Post by: mbc on September 28, 2004, 06:16:25 am
You can also use the Find function with the "Find orphans" option checked to find unused elements. Then you can delete them.

Mikkel
Title: Re: Synchronization of Project Browser and Diagram
Post by: thomaskilian on September 28, 2004, 08:34:04 am
Mikkel,
I guess Matthias needs it the other way around. If the object is referenced in more than the current diagram one should be asked before deletion. The orphans just shows such elements which are NOT in any diagram. However, the CTRL+DEL warns that this is final. In that way you should  ??? know that you don't need the element any more...
Title: Re: Synchronization of Project Browser and Diagram
Post by: sargasso on September 28, 2004, 04:02:49 pm
 8) Don' t forget ctl-U on a clicked diagram element shows you where its used.

I, myself, personnally have got into the habit of ctl-U, ctl-Del  ::)

rgrds
Bruce
Title: Re: Synchronization of Project Browser and Diagram
Post by: mbc on September 29, 2004, 07:59:24 am
Thomas, my point is that if you just use regular delete in your diagrams, you can tidy up once in a while using Find Orphans.

Mikkel
Title: Re: Synchronization of Project Browser and Diagram
Post by: thomaskilian on September 29, 2004, 12:14:49 pm
Ah, I see. That makes sense also  :)