|
From: Alan E. <ala...@gm...> - 2008-06-18 01:12:53
|
I observed that too. Basically, the file selection is always coming from the directory entry table, not the parent directory tree, so unless you select something there, you'll always get no selection. So the browser actions from the parent directory list never work properly on specific selected items. So I only use those actions from the directoryentry table. On Tue, Jun 17, 2008 at 10:43 AM, Matthieu Casanova <cho...@gm...> wrote: > Hi, > in the browser actions, there is a variable "files" that contains the > selected file(s). > If the action was triggered from the parent list, the result seems to > be always empty. > I checked the class > VFSBrowser.BrowserActionContext > > the method > private static VFSFile[] getSelectedFiles(EventObject evt,VFSBrowser browser) > > It search for a JList in the ancestors of the source of the event. > But I think it would be better to search for a ParentDirectoryList, > otherwise I don't understand how this method works. > Do someone has an idea ? > > Matthieu > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > -- > ----------------------------------------------- > jEdit Developers' List > jEd...@li... > https://lists.sourceforge.net/lists/listinfo/jedit-devel > |