Login  Register

Re: Files only added to "Open Recent" if File>Open used, not drag and drop

Posted by Wayne Rasband on Dec 19, 2006; 4:08pm
URL: http://imagej.273.s1.nabble.com/Files-only-added-to-Open-Recent-if-File-Open-used-not-drag-and-drop-tp3700776p3700777.html

This will be fixed in ImageJ 1.38f.

-wayne

On Dec 18, 2006, at 5:46 PM, Josh Doe wrote:

> I've been noticing that my "Open Recent" menu has been very
> empty. I then realized it is because ImageJ does not add
> files to this menu that have been drag'n'dropped, which is
> almost exclusively the way I open images.
>
> It
> appears that when an image is drag'n'dropped to the ImageJ window,
> the method Macro.open(path) is called which then calls
> Opener.openImage(path). When I use File>Open to open an image
> Opener.open() is called which adds the file to the "Open Recent" list.
>
> I've found that it comes down to the function
> Menus.addOpenRecentItem(path)
> being called only in Opener.open().
>
> Could this line be added to Opener.openImage(path) as well?
>
> Thanks,
> Josh
>