Changeset 6478


Ignore:
Timestamp:
06/03/10 20:44:27 (10 years ago)
Author:
curtis
Message:

Readd support for obsolete "Standard ImageJ" stack view option.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/loci-plugins/src/loci/plugins/in/ImporterOptions.java

    r6476 r6478  
    196196  public void checkObsoleteOptions() { 
    197197    String options = Macro.getOptions(); 
     198 
     199    // check obsolete view options 
     200    String stackFormat = options == null ? 
     201      null : Macro.getValue(options, "view", null); 
     202    final String viewStandard = "Standard ImageJ"; 
     203    if (viewStandard.equals(stackFormat)) { 
     204      // Standard ImageJ -> Hyperstack 
     205      options = options.replaceFirst( 
     206        "\\[" + viewStandard + "\\]", VIEW_HYPERSTACK); 
     207      Macro.setOptions(options); 
     208      setStackFormat(VIEW_HYPERSTACK); 
     209    } 
     210 
     211    // check obsolete color options 
    198212    boolean mergeChannels = checkKey(options, "merge_channels"); 
    199213    boolean rgbColorize = checkKey(options, "rgb_colorize"); 
Note: See TracChangeset for help on using the changeset viewer.