|
From: Slava P. <sl...@je...> - 2003-03-23 20:04:10
|
Oh, I thought you wanted a directory listing inserted in the buffer. What you
want is even simpler:
selected = view.getDockableWindowManager()
.getDockable("vfs.browser").getSelectedFiles();
for(i = 0; i < selected.length; i++)
{
buffer.insert(textArea.getCaretPosition(),selected[i].path);
buffer.insert(textArea.getCaretPosition(),"\n");
}
This inserts every selected path name into the buffer.
On March 18, 2003 04:34 am, you wrote:
> Very intersting. But I search something with the File System Browser. I
> imagine I select a file or a directory with the browser, and the macro
> copies the name of this file / directory in the current buffer.
>
> With Ant, for exemple, I often type some name file, and I always forgot the
> exact name, so it's very penible.
>
> If you think it's possible, simply give me some idea : I know java, so I
> can do the macro myself.
--
Slava Pestov
|