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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Josh Doe-2
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
Reply | Threaded
Open this post in threaded view
|

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

dscho
Hi,

On Mon, 18 Dec 2006, Josh Doe wrote:

> 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?

No. Opener.openImage() is not necessarily called interactively.

Note that there is a fix in ImageJA for this exact issue.

Ciao,
Dscho
Reply | Threaded
Open this post in threaded view
|

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

Wayne Rasband
In reply to this post by Josh Doe-2
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
>