Disable / grey out context-menu items in vision

I am trying to customize the context menue of a component in vision and I would like to grey out one item in the context menu:
context-menu

In the context menue that is shown, when i right-click on the root container some items are greyed out. That is what I am trying to do.

Thanks for any hint on how to achive this.

You'll need to create a custom java menu instead of using IA's helper function. This topic will get you started:

The key to your case is that each JMenuItem has a .setEnabled() method. (Follow the link to the javadoc.)

Thanks! I will look into that.