Use the default request processor instead of a new Thread.
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