I am building an extension for my MVC framework. The features I am building are conditional to what part of the framework you are in. For example, if you are in the controller, I want to select the controller action (function name), right click and select "open view" or "create view". I want to hide those menu options if I my acctive file is not the controller. I figured I could do this w/ filters, but filters on seem to apply to the views and not the editor. Any suggestions?