|
From: Alan E. <ala...@gm...> - 2011-01-04 18:26:51
|
1. The VFS browser is called "vfs.browser"
2. and it got that name from the dockables.xml which lists all the
dockables that are available from jEdit.
3. For getDirectory(), it returns a uri, I think...
On Tue, Jan 4, 2011 at 10:05 AM, Brian Schlining <bsc...@gm...> wrote:
> Hi All,
> I'm trying to write a plugin for jEdit and I want to do the following:
> 1) Get a reference to the File Browser (the instance of a VFSBrowser
> associated with a view).
> 2) Get a reference to the directory in the top pane of the VFSBrowser
> As near as I can tell from reading the javadocs; the way to get a reference
> to the File Browser and then the directory is to do something like:
> DockableWindowManager winManager = view.getDockableWindowManager();
> VFSBrowser vfsBrowser =
> (VFSBrowser) winManager.getDockable("mysterious.name");
> String directory = vfsBrowser.getDirectory();
> So my questions are:
> 1) Is this the best way to get a reference to the file browser?
> 2) What is the "mysterious.name" used to retrieve a reference for the file
> browser?
> 2) vfsBrowser.getDirectory() returns a string. What is this string (URL?,
> URI?, File path?)
> Thanks!
> --
> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
> Brian Schlining
> bsc...@gm...
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
> and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> --
> -----------------------------------------------
> jEdit Developers' List
> jEd...@li...
> https://lists.sourceforge.net/lists/listinfo/jedit-devel
>
>
|