Iterator iterator = ((List)data).iterator();
//IJ.log("drop");
while(iterator.hasNext()) {
final File file = (File)iterator.next();
//IJ.log("dopen: "+file.getAbsolutePath());
final Reader reader = new Reader(masterModel);
SwingUtilities.invokeLater(new Runnable() {
ImageWindow iwc = null;
public void run() {
try {
IJ.showStatus("Loading image");
ImagePlus[] imp = reader.open(file.getAbsolutePath(), true);
IJ.showStatus("Image loaded");
if (imp == null)
return;
for (int i = 0; i < imp.length; i++) {
imp[i].show();