From: Tom C. <to...@in...> - 2002-07-24 20:30:28
|
Cool, thanks. In that case, I'll just do the ============= DockableWindowManager wm = view.getDockableWindowManager(); VFSBrowser browser = (VFSBrowser)wm.getDockable("vfs.browser"); if(browser != null) { String dir = browser.getDirectory(); } ============= thingamajigger, which'll be good enough. Thanks, Tom -----Original Message----- From: jed...@li... [mailto:jed...@li...] On Behalf Of car...@lo... Sent: Wednesday, July 24, 2002 3:10 PM To: jed...@li... Subject: Re: [ jEdit-users ] How can my plugin add an item to the file browser popup menu? I believe this was possible at one time, but not any more. The only place to add something, as you probably know, is to the "Plugins" drop-down of the FSB. Carmine |---------+---------------------------------------> | | "Tom Copeland" | | | <to...@in...> | | | Sent by: | | | jed...@li...ur| | | ceforge.net | | | | | | | | | 07/24/02 03:56 PM | | | | |---------+---------------------------------------> >----------------------------------------------------------------------- --------------------------------------------------------| | | | To: jed...@li... | | cc: | | Fax to: | | Subject: [ jEdit-users ] How can my plugin add an item to the file browser popup menu? | >----------------------------------------------------------------------- --------------------------------------------------------| [cross-posting since jedit-dev seems a bit quiet today] ....so that when someone right-clicks on, say, a directory, there will be an option in the list that says "run PMD on this directory" or whatever. It looks like the popup menu commands are added in the org.gjt.sp.jedit.browser.BrowserCommandsMenu constructor - is there a way for a plugin to add a new command? Thanks, Tom Copeland InfoEther 703-486-4543 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf -- ----------------------------------------------- jEdit Users' List jEd...@li... https://lists.sourceforge.net/lists/listinfo/jedit-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf -- ----------------------------------------------- jEdit Users' List jEd...@li... https://lists.sourceforge.net/lists/listinfo/jedit-users |