Changeset 544


Ignore:
Timestamp:
10/17/05 14:56:10 (15 years ago)
Author:
curtis
Message:

Report in System panel when QTJava is expired.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/visbio/SystemControls.java

    r531 r544  
    117117    String qtVersion = null; 
    118118    try { 
    119       ReflectedUniverse r = new QTForm().getUniverse(); 
    120       String qtMajor = r.exec("QTSession.getMajorVersion()").toString(); 
    121       String qtMinor = r.exec("QTSession.getMinorVersion()").toString(); 
    122       qtVersion = qtMajor + "." + qtMinor; 
     119      System.out.println("Constructing QT form"); 
     120      QTForm qtForm = new QTForm(); 
     121      if (qtForm.isQTExpired()) qtVersion = "Expired"; 
     122      else { 
     123        ReflectedUniverse r = qtForm.getUniverse(); 
     124        String qtMajor = r.exec("QTSession.getMajorVersion()").toString(); 
     125        String qtMinor = r.exec("QTSession.getMinorVersion()").toString(); 
     126        qtVersion = qtMajor + "." + qtMinor; 
     127      } 
    123128    } 
    124129    catch (VisADException exc) { qtVersion = "Missing"; } 
Note: See TracChangeset for help on using the changeset viewer.