[ImageJ-devel] Instantiation Questions

Grant B. Harris gharris at mbl.edu
Mon Aug 16 10:01:41 CDT 2010


  Wayne, or anyone who might know,
'
I have two questions concerning instantiation of classes...

1) The NewImage() constructor invokes openImage().
Only call to it seems to be in ij.Commands, if (cmd.equals("new")) new 
NewImage();
Any reason not to call it this way?
(new NewImage()).openImage();
It would be convenient if there were a typical no-args constructor for this.

2) Menus changed at some point recently to have an instance field and a 
constructor.  What were the reasons for this?

-- Grant




More information about the ImageJ-devel mailing list