Community
Participate
Working Groups
If you delete an actor either in the .room file or in the diagram, the appropriate diagram files should be deleted too. Recreate an actor with the same name will cause "red" actors in the diagram. All references of this actor (and the appropriate diagram files) should be deleted and/or updated.
The enhancement request is definitely valid. It is not possible though triggering this clean-up automatically when the actor class is removed from the .room file (deleting it from the diagram is not possible anyways). Xtext updates its abstract syntax tree and won't even note that an actor class is gone. So I would propose to add a command to the eTrice menu "Clean-up Diagrams..." which opens a dialog that lets the user choose between - current folder - enclosing project - workspace The dialog should save open editors (after user feedback) and check whether diagrams reference non-existing actor classes. If desired a list of all obsolete diagrams could be presented and the user should check which should be deleted.
This is in general not possible. First Xtext is plain text. All objects are of a more transient nature. It can not be determined when an actor is deleted. Second eTrice explicitly supports distributed models. It is not possible to determine all references. We have to rely on fixing the problem when e.g. a diagram is opened.