Dynamically show "Delete from model" or "Delete from view"

Issue #369 resolved
Romain Alexandre created an issue

When an user tap and hold on a goal, it will show "Delete" and "Delete with children". It would be nice to show "Delete" + "from model" or "from view". Thus, the user will know what he is doing.

In the method createDeleteImpactModelElementCommand(...) of AbstractImpactModelElementController, you can find a condition that will check if we will delete from the model or from the view.

I think the enumeration GoalOption of GoalImpactViewEditHandlershould have the values DELETE_FROM_MODEL and DELETE_FROM_VIEW.

Using the previous condition, we can add the correct "Delete" to the Selector.

Comments (6)

  1. Romain Alexandre reporter

    References #369: Create an operation in abstractImpactModelElementControler in order to avoid to call shoulDeletedNodeFromModel again in the controler

    → <<cset b2e002aadc7b>>

  2. Romain Alexandre reporter

    References #369: Create an operation in abstractImpactModelElementControler in order to avoid to call shoulDeletedNodeFromModel again in the controler

    → <<cset b2e002aadc7b>>

  3. Log in to comment