Changeset 5118


Ignore:
Timestamp:
05/20/09 05:55:28 (11 years ago)
Author:
curtis
Message:

Progress on LOCI plugins preferences refactoring.

Location:
trunk/components/loci-plugins/src/loci/plugins
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/loci-plugins/src/loci/plugins/prefs/Option.java

    r5111 r5118  
    2626package loci.plugins.prefs; 
    2727 
     28import loci.common.IniParser; 
     29 
    2830/** 
    2931 * Base class for an option for one of the LOCI plugins. 
     
    4143 
    4244  /** INI key indicating option's key. */ 
    43   public static final String INI_KEY = "key"; 
     45  public static final String INI_KEY = IniParser.HEADER_KEY; 
    4446 
    4547  /** INI key indicating option's label. */ 
  • trunk/components/loci-plugins/src/loci/plugins/prefs/OptionsList.java

    r5111 r5118  
    7979  } 
    8080 
     81  // -- OptionsList methods -- 
     82 
     83  /** Loads option values from the ImageJ preferences file. */ 
     84  public void loadOptions() { 
     85    for (Option o : options) o.loadOption(); 
     86  } 
     87 
     88  /** Saves option values to the ImageJ preferences file. */ 
     89  public void saveOptions() { 
     90    for (Option o : options) o.saveOption(); 
     91  } 
     92 
    8193} 
Note: See TracChangeset for help on using the changeset viewer.