Changeset 2565


Ignore:
Timestamp:
04/06/07 12:38:01 (13 years ago)
Author:
sorber
Message:

Added static field and method to store and retrieve the VisBioFrame. Turned on tabs in the OptionPane.

Location:
trunk/loci/visbio
Files:
2 edited

Legend:

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

    r2047 r2565  
    5757    "true".equalsIgnoreCase(System.getProperty("visbio.debug")); 
    5858 
     59  // -- Static fields -- 
     60 
     61  /** Running instance of VisBio. */ 
     62  protected static VisBioFrame visbio; 
     63 
    5964  // -- Fields -- 
    6065 
     
    8590  public VisBioFrame(SplashScreen splash, String[] args) { 
    8691    super(true); 
     92    if (visbio != null) { 
     93      throw new RuntimeException("Only once instance of VisBio is allowed"); 
     94    } 
     95    visbio = this; 
    8796    try { 
    8897      // initialize server for responding to newly spawned instances 
     
    219228  } 
    220229 
     230  // -- Static VisBioFrame API methods -- 
     231 
     232  /** Gets the running instance of VisBio. */ 
     233  public static VisBioFrame getVisBio() { 
     234    return visbio; 
     235  } 
     236 
    221237  // -- VisBioFrame API methods -- 
    222238 
  • trunk/loci/visbio/state/OptionPane.java

    r1989 r2565  
    3535 
    3636  /** Flag indicating options should be divided into separate tabs. */ 
    37   protected static final boolean USE_TABS = false; 
     37  protected static final boolean USE_TABS = true; 
    3838 
    3939  // -- Fields -- 
Note: See TracChangeset for help on using the changeset viewer.