The attached patch brings some minor changes to EditPlugin and VFSBrowser in order to support dynamic menu.
Right now the FSB only support the addition of static menu defined in properties plugin.classname.browser-menu and plugin.classname.browser-menu-item.
This adds support for plugin.classname.browser-menu.code=code to instantiate a DynamicMenuProvider.
This is needed by the new Launcher plugin I'm writing so that it can provide a menu which content depends on the selected items.
patch file to HEAD revision
I notice in the patch that another method is removed - also called getSelectedFiles but with different signature.
Is that intentional? Did you verify that no plugins use it?
The method removed is private and belongs to a package private inner class. That should be enough to ensure removing it does not break anything.
However the method is not all lost: it's now a public method of the outer class.
Committed 17147
As per k_satoda request for documentation, fold and @since tag, here is an incremental patch file.
jEdit-EditPlugin-VFSBrowser-patch-fmjrey-20100130-browser-dyn-menu-support.txt