Move context menu action creation in a method
They are done in a role at them moment, but all roles are queried from the moment at the moment of the delegate creation (either for the population of the model.* context property or when a section is used so since this can be expensive, move it in a method which will be called only at the act of building the menu when the user presses the right button.
Edited by Marco Martin