I'm beginning the process of writing additional plug-ins for RDE, and I'm trying to figure/find out how I can control how menuitems are enabled, or even prevent them from showing, dynamically (as I would in Eclipse, for instance). Right now, it seems like once you register an editor as being capable of editing a given file extension it always shows up in the context menu, but I'd like to be able to control that based on various settings and/or based on the content of that file. Is there an existing mechanism for doing so? If not, could you point me at the code I would need to modify in order to add such a mechanism?
↧