Disable / grey out context-menu items in vision

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.)