| Summary: | Deleting an actor should delete the diagram files too | ||
|---|---|---|---|
| Product: | [Modeling] eTrice | Reporter: | Thomas Jung <tj> |
| Component: | UserInterface | Assignee: | Project Inbox <etrice.userinterface-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | hrr |
| Version: | 0.1.0 | Flags: | hrr:
indigo+
|
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | 0.1.0 | ||
|
Description
Thomas Jung
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. |