Changeset 2843


Ignore:
Timestamp:
06/05/07 08:25:28 (13 years ago)
Author:
melissa
Message:

Always use "<filename> - <series name>" window titles.

File:
1 edited

Legend:

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

    r2841 r2843  
    589589    if (stack == null) return; 
    590590    if (!options.isMergeChannels() && options.isSplitWindows()) { 
    591       slice(stack, sizeZ, sizeC, sizeT, fi, r, fs, options); 
     591      slice(stack, label, sizeZ, sizeC, sizeT, fi, r, fs, options); 
    592592    } 
    593593    else { 
     
    603603 
    604604  /** Opens each channel of the source stack in a separate window. */ 
    605   private void slice(ImageStack is, int z, int c, int t, FileInfo fi, 
    606     IFormatReader r, FileStitcher fs, ImporterOptions options) 
     605  private void slice(ImageStack is, String label, int z, int c, int t,  
     606    FileInfo fi, IFormatReader r, FileStitcher fs, ImporterOptions options) 
    607607    throws FormatException, IOException 
    608608  { 
     
    642642 
    643643    for (int i=0; i<newStacks.length; i++) { 
    644       ImagePlus imp = new ImagePlus(r.getCurrentFile() + " - Ch" + (i+1), 
    645         newStacks[i]); 
     644      ImagePlus imp = new ImagePlus(label + " - Ch" + (i+1), newStacks[i]); 
    646645      applyCalibration((OMEXMLMetadataStore) r.getMetadataStore(), imp, 
    647646        r.getSeries()); 
Note: See TracChangeset for help on using the changeset viewer.