Use the default request processor instead of a new Thread. BLD200205300100
authormentlicher@netbeans.org
Wed, 29 May 2002 18:34:09 +0000
changeset 228992e0ca3941d6
parent 2288 376312a1863d
child 2290 68e0b328f071
Use the default request processor instead of a new Thread.
vcscore/src/org/netbeans/modules/vcscore/commands/CommandExecutorSupport.java
     1.1 --- a/vcscore/src/org/netbeans/modules/vcscore/commands/CommandExecutorSupport.java	Wed May 29 15:57:00 2002 +0000
     1.2 +++ b/vcscore/src/org/netbeans/modules/vcscore/commands/CommandExecutorSupport.java	Wed May 29 18:34:09 2002 +0000
     1.3 @@ -30,6 +30,7 @@
     1.4  import org.openide.TopManager;
     1.5  import org.openide.NotifyDescriptor;
     1.6  import org.openide.DialogDescriptor;
     1.7 +import org.openide.util.RequestProcessor;
     1.8  import org.openide.util.UserCancelException;
     1.9  
    1.10  import org.netbeans.modules.vcscore.VcsFileSystem;
    1.11 @@ -441,8 +442,8 @@
    1.12              } else {
    1.13                  RetrievingDialog rd = new RetrievingDialog(fileSystem, dirName, new javax.swing.JFrame(), false);
    1.14                  VcsUtilities.centerWindow(rd);
    1.15 -                Thread t = new Thread(rd, "VCS Recursive Retrieving Thread - "+dirName); // NOI18N
    1.16 -                t.start();
    1.17 +                RequestProcessor rp = RequestProcessor.getDefault();
    1.18 +                rp.post(rd);
    1.19              }
    1.20          } else {
    1.21              statusProvider.refreshDir(dirName); // NOI18N