Community
Participate
Working Groups
It should be possible to disable the delete option in the instance popup menu if the instance is in a status not appropriate for deletion.
Created attachment 111578 [details] Suggestion for controlling if deletion is possible at some state This patch adds a new attribute at the Status extension point, so that the declarer can forbid the deletion operation to happen when the device is at that state.
I have attached a suggestion for solving this bug. In the proposal, a "canDelete" flag was added to the Status declaration, which is kept inside the model. The instance view was updated to use this information for enabling/disabling the "Delete" item in the instance context menu. This is a note to clarify the licensing issues: I wrote the code of all new classes that are contained in the archive. I has the right to contribute the code to Eclipse.
One additional note: I, Fabio Rigo, declare that I developed attached code from scratch, without referencing any 3rd party materials except material licensed under the EPL. I am authorized by my employer to make this contribution under the EPL.
Code revised and patch applied
integrated to version 0.1
CVS branch for 0.1 release: branch_dsdp_tml_official_0_1_0_R