Daniel,
I made the 'Droplet' plugin to handle such situations where you need custom
control of what should happen upon drag and drop. You could use it as such,
or look at the source code, which you'll find at :
http://imagejdocu.tudor.lu/doku.php?id=plugin:utilities:droplet:startThis is what the beginning of the required droplet action would look like:
file=getArgument();
if (!File.isDirectory(file)) exit ("Only takes folders");
// process your special folder here.
// ...
Jerome
On Wed, Oct 27, 2010 at 11:49 PM, Daniel Kalthoff <
[hidden email]> wrote:
> Dear ImageJ Community,
>
> I am implementing a reader for a special file format. The relevant files
> (data and metadata) for a single image are spread in a somewhat complex
> directory structure, however with one parent folder. For convenience, I'd
> like to offer the option of simply dragging the parent folder onto ImageJ
> and then make the plugin do the rest. The event of a dragged and dropped
> folder, however, does not to enter the HandleExtraFileTypes plugin, but
> seems to be intercepted before. Any suggestions how to solve this issue?
>
> Thanks a lot in advance,
>
> Daniel