Changeset 1413


Ignore:
Timestamp:
09/05/06 13:57:50 (14 years ago)
Author:
curtis
Message:

Add checks for GenericDialog cancelation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/plugins/LociImporter.java

    r1411 r1413  
    8585      gd.addCheckbox(stitchString, stitchFiles); 
    8686      gd.showDialog(); 
     87      if (gd.wasCanceled()) return; 
    8788      mergeChannels = gd.getNextBoolean(); 
    8889      splitWindows = gd.getNextBoolean(); 
     
    149150          sizeX + " x " + sizeY + " x " + imageCount, i == 0); 
    150151      } 
    151       if (seriesCount > 1) datasets.showDialog(); 
     152      if (seriesCount > 1) { 
     153        datasets.showDialog(); 
     154        if (datasets.wasCanceled()) return; 
     155      } 
    152156 
    153157      boolean[] series = new boolean[seriesCount]; 
Note: See TracChangeset for help on using the changeset viewer.