Changeset 4107


Ignore:
Timestamp:
06/09/08 13:16:07 (12 years ago)
Author:
curtis
Message:

Add one-time warning if user is running an older version of ImageJ.

File:
1 edited

Legend:

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

    r4055 r4107  
    428428        // present user with one-time dialog box 
    429429        IJ.showMessage("Bio-Formats", 
    430           "Please note: There is a bug in Java on Mac OS X with the\n" + 
     430          "One-time warning: There is a bug in Java on Mac OS X with the\n" + 
    431431          "native file chooser that crashes ImageJ if you click on a file\n" + 
    432432          "in cxd, ipw, oib or zvi format while in column view mode.\n" + 
    433433          "You can work around the problem by switching to list view\n" + 
    434           "(press Command+2) or by checking the \"Use JFileChooser\n" + 
    435           "to Open/Save\" option in the Edit>Options>Input/Output...\n" + 
    436           "dialog. This message will not appear again."); 
    437       } 
     434          "(press Command+2) or by checking the \"Use JFileChooser to\n" + 
     435          "Open/Save\" option in the Edit>Options>Input/Output... dialog."); 
     436      } 
     437    } 
     438    String ijVersion = IJ.getVersion(); 
     439    if (firstTime && (ijVersion == null || ijVersion.compareTo("1.39u") < 0)) { 
     440      // present user with one-time dialog box 
     441      if (ijVersion == null) ijVersion = "unknown"; 
     442      IJ.showMessage("Bio-Formats", 
     443        "One-time warning: Some features of Bio-Formats, such as the\n" + 
     444        "Data Browser and some color handling options, require ImageJ\n" + 
     445        "v1.39u or later. Your version is " + ijVersion + 
     446        "; you will need to upgrade\n" + 
     447        "if you wish to take advantage of these features."); 
    438448    } 
    439449    if (id == null) { 
Note: See TracChangeset for help on using the changeset viewer.