It would be nice to have the following features
1. Open certain windows associated with the modi
2. filter the menu on actions associated with the modi
3. Filter the explorer on nodes associated with the modi
Windows are only opened automatic when open at startup is true and when they are not closed previously, it will close windows not registered under the role.
quote from Geertjan
I.e., right now roles only applies to the window system, not to the action system. However, there are other techniques you can use for what you describe. I.e., elsewhere in this blog you'll find instructions for dynamically injecting a layer file into an application. That's the approach you would use for what you're trying to do.
https://blogs.oracle.com/geertjan/entry/injecting_a_layer_file_into describes dynamically injecting layer files
Topcomponents get their own sub folder in windows2 when they're assigned a role maybe we could use that to get a list of available modi in the menu bar. The only trouble with that is translation. To display the appropriate actions for a modi we could use a similar method.
Did some searching and did not find a solution to the translation of the user roles, maybe it is a better idea to describe an interface which provides the modi name and the actions within this modi. The menu module can then search all the service providers of this interface and merge the different modules together and add the provided actions to them.