Changeset 6698


Ignore:
Timestamp:
07/13/10 16:16:15 (9 years ago)
Author:
curtis
Message:

Fix problem with GUI locking when using LOCI Plugins Shortcut Window.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/loci-plugins/src/loci/plugins/shortcut/ShortcutPanel.java

    r6588 r6698  
    180180  } 
    181181 
    182   public static void runPlugIn(String className, String arg) { 
    183     try { 
    184       IJ.runPlugIn(className, arg); 
    185     } 
    186     catch (Throwable t) { 
    187       WindowTools.reportException(t); 
    188     } 
     182  /** Executes the given plugin, in a separate thread. */ 
     183  public static void runPlugIn(final String className, final String arg) { 
     184    // NB: If we don't run in a separate thread, there are GUI update 
     185    //     problems with the ImageJ status bar and log window. 
     186    new Thread() { 
     187      public void run() { 
     188        try { 
     189          IJ.runPlugIn(className, arg); 
     190        } 
     191        catch (Throwable t) { 
     192          WindowTools.reportException(t); 
     193        } 
     194      } 
     195    }.start(); 
    189196  } 
    190197 
Note: See TracChangeset for help on using the changeset viewer.