JAL-1953 named various threads
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Wed, 10 Jan 2018 17:01:58 +0000 (17:01 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Wed, 10 Jan 2018 17:01:58 +0000 (17:01 +0000)
31 files changed:
src/jalview/appletgui/OverviewPanel.java
src/jalview/appletgui/PCAPanel.java
src/jalview/appletgui/RedundancyPanel.java
src/jalview/bin/Jalview.java
src/jalview/ext/rbvi/chimera/JalviewChimeraBinding.java
src/jalview/fts/core/GFTSPanel.java
src/jalview/fts/service/pdb/PDBFTSPanel.java
src/jalview/gui/AlignFrame.java
src/jalview/gui/AppJmol.java
src/jalview/gui/ChimeraViewFrame.java
src/jalview/gui/Console.java
src/jalview/gui/DasSourceBrowser.java
src/jalview/gui/Desktop.java
src/jalview/gui/JalviewDialog.java
src/jalview/gui/OverviewPanel.java
src/jalview/gui/PopupMenu.java
src/jalview/gui/RedundancyPanel.java
src/jalview/gui/SplashScreen.java
src/jalview/gui/StructureViewerBase.java
src/jalview/gui/TreeCanvas.java
src/jalview/gui/VamsasApplication.java
src/jalview/gui/WebserviceInfo.java
src/jalview/gui/WsPreferences.java
src/jalview/io/BioJsHTMLOutput.java
src/jalview/io/FileLoader.java
src/jalview/io/HtmlSvgOutput.java
src/jalview/javascript/JSFunctionExec.java
src/jalview/util/AWTConsole.java
src/jalview/ws/DBRefFetcher.java
src/jalview/ws/DasSequenceFeatureFetcher.java
src/jalview/ws/jws2/Jws2Discoverer.java

index 1855c3d..7f9f670 100755 (executable)
@@ -235,7 +235,7 @@ public class OverviewPanel extends Panel implements Runnable,
 
       updateRunning = true;
     }
-    Thread thread = new Thread(this, "OverviewUpdateThread");
+    Thread thread = new Thread(this, "OverviewUpdate");
     thread.start();
     repaint();
     updateRunning = false;
index ea6eda6..6c0ed73 100644 (file)
@@ -117,7 +117,7 @@ public class PCAPanel extends EmbmenuFrame
             MessageManager.getString("label.principal_component_analysis"),
             475, 400);
 
-    Thread worker = new Thread(this, "PCACalcThread");
+    Thread worker = new Thread(this, "PCACalc");
     worker.start();
   }
 
@@ -220,7 +220,7 @@ public class PCAPanel extends EmbmenuFrame
         ScoreModelI scoreModel = ScoreModels.getInstance()
                 .getDefaultModel(false);
         pcaModel.setScoreModel(scoreModel);
-        new Thread(this, "PCARecalcThread").start();
+        new Thread(this, "PCARecalc").start();
       }
     }
     else if (evt.getSource() == protSetting)
@@ -231,7 +231,7 @@ public class PCAPanel extends EmbmenuFrame
         ScoreModelI scoreModel = ScoreModels.getInstance()
                 .getDefaultModel(true);
         pcaModel.setScoreModel(scoreModel);
-        new Thread(this, "PCARecalcThread").start();
+        new Thread(this, "PCARecalc").start();
       }
     }
   }
index c7d8157..41bba33 100644 (file)
@@ -89,7 +89,7 @@ public class RedundancyPanel extends SliderPanel
 
     frame.addWindowListener(this);
 
-    Thread worker = new Thread(this, "RedundancyCalcThread");
+    Thread worker = new Thread(this, "RedundancyCalc");
     worker.start();
   }
 
index 245a63c..80b03ce 100755 (executable)
@@ -155,7 +155,7 @@ public class Jalview
             running--;
           }
         }
-      }, "FeatureFetcherThread").start();
+      }, "FeatureFetcher").start();
     }
 
     public synchronized boolean allFinished()
index 82cba86..fd772ef 100644 (file)
@@ -226,7 +226,7 @@ public abstract class JalviewChimeraBinding extends AAStructureBindingModel
           // exit thread if Chimera Viewer is closed in Jalview
         }
       }
-    }, "ChimeraMonitorThread");
+    }, "ChimeraMonitor");
     chimeraMonitor.start();
   }
 
index da65ddf..fbeeee8 100644 (file)
@@ -900,7 +900,7 @@ public abstract class GFTSPanel extends JPanel implements GFTSPanelI
   public void transferToSequenceFetcher(String ids)
   {
     seqFetcher.getTextArea().setText(ids);
-    Thread worker = new Thread(seqFetcher, "GFTSSeqFetcherThread");
+    Thread worker = new Thread(seqFetcher, "GFTSSeqFetcher");
     worker.start();
   }
 
index f25b98b..adb910b 100644 (file)
@@ -222,7 +222,7 @@ public class PDBFTSPanel extends GFTSPanel
     String ids = selectedIds.toString();
     // System.out.println(">>>>>>>>>>>>>>>> selected Ids: " + ids);
     seqFetcher.getTextArea().setText(ids);
-    Thread worker = new Thread(seqFetcher, "PDBFTSSeqFetcherThread");
+    Thread worker = new Thread(seqFetcher, "PDBFTSSeqFetcher");
     worker.start();
     delayAndEnableActionButtons();
   }
index 0ebf8e8..7029289 100644 (file)
@@ -4374,7 +4374,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
         }
         buildingMenu = false;
       }
-    }, "BuildWebServiceThread").start();
+    }, "BuildWebService").start();
 
   }
 
@@ -4483,7 +4483,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
           final String source)
   {
     new Thread(CrossRefAction.showProductsFor(sel, _odna, source, this),
-            "CrossReferencesThread")
+            "CrossReferences")
             .start();
   }
 
@@ -4762,7 +4762,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
             ex.printStackTrace();
           }
         }
-      }, "DropFileThread").start();
+      }, "DropFile").start();
     }
   }
 
@@ -5133,7 +5133,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
             });
             dbRefFetcher.fetchDBRefs(false);
           }
-        }, "BuildFetchDBMenuThread").start();
+        }, "BuildFetchDBMenu").start();
 
       }
 
index d5eb2ae..3dd9571 100644 (file)
@@ -218,7 +218,7 @@ public class AppJmol extends StructureViewerBase
     setSize(400, 400); // probably should be a configurable/dynamic default here
     initMenus();
     addingStructures = false;
-    worker = new Thread(this, "OpenJmolThread");
+    worker = new Thread(this, "OpenJmol");
     worker.start();
 
     this.addInternalFrameListener(new InternalFrameAdapter()
index 48565eb..4b45459 100644 (file)
@@ -272,7 +272,7 @@ public class ChimeraViewFrame extends StructureViewerBase
     initMenus();
 
     addingStructures = false;
-    worker = new Thread(this, "OpenChimeraThread");
+    worker = new Thread(this, "OpenChimera");
     worker.start();
 
     this.addInternalFrameListener(new InternalFrameAdapter()
index 5fee61f..9d847a8 100644 (file)
@@ -138,15 +138,15 @@ public class Console extends WindowAdapter
 
     // Starting two seperate threads to read from the PipedInputStreams
     //
-    reader = new Thread(this, "ConsoleReader1Thread");
+    reader = new Thread(this, "ConsoleReader1");
     reader.setDaemon(true);
     reader.start();
     //
-    reader2 = new Thread(this, "ConsoleReader2Thread");
+    reader2 = new Thread(this, "ConsoleReader2");
     reader2.setDaemon(true);
     reader2.start();
     // and a thread to append text to the textarea
-    textAppender = new Thread(this, "ConsoleTextAppendThread");
+    textAppender = new Thread(this, "ConsoleTextAppend");
     textAppender.setDaemon(true);
     textAppender.start();
   }
@@ -255,7 +255,7 @@ public class Console extends WindowAdapter
     // We do it with a seperate Thread becasue we don't wan't to break a Thread
     // used by the Console.
     System.out.println("\nLets throw an error on this console");
-    errorThrower = new Thread(this, "ConsoleErrorLogThread");
+    errorThrower = new Thread(this, "ConsoleErrorLog");
     errorThrower.setDaemon(true);
     errorThrower.start();
   }
index a1b67e7..53204d4 100644 (file)
@@ -124,7 +124,7 @@ public class DasSourceBrowser extends GDasSourceBrowser
   {
     if (sourceRegistry == null)
     {
-      Thread worker = new Thread(this, "PaintDasThread");
+      Thread worker = new Thread(this, "PaintDas");
       worker.start();
     }
   }
@@ -368,7 +368,7 @@ public class DasSourceBrowser extends GDasSourceBrowser
   {
     saveProperties(jalview.bin.Cache.applicationProperties);
 
-    Thread worker = new Thread(this, "RepaintDasThread");
+    Thread worker = new Thread(this, "RepaintDas");
     worker.start();
   }
 
index 75ea88f..6eea78d 100644 (file)
@@ -456,7 +456,7 @@ public class Desktop extends jalview.jbgui.GDesktop
                 fileFormat);
         Cache.log.debug("Filechooser init thread finished.");
       }
-    }, "InitFileChooserThread").start();
+    }, "InitFileChooser").start();
     // Add the service change listener
     changeSupport.addJalviewPropertyChangeListener("services",
             new PropertyChangeListener()
@@ -575,7 +575,7 @@ public class Desktop extends jalview.jbgui.GDesktop
             Desktop.instance.setProgressBar(null, now);
             jvnews.showNews();
           }
-        }, "ShowNewsWindowThread").start();
+        }, "ShowNewsWindow").start();
       }
     }
   }
@@ -1272,7 +1272,7 @@ public class Desktop extends jalview.jbgui.GDesktop
       {
         new SplashScreen(true);
       }
-    }, "ShowAboutMenuThread").start();
+    }, "ShowAboutMenu").start();
   }
 
   public StringBuffer getAboutMessage(boolean shortv)
@@ -1614,7 +1614,7 @@ public class Desktop extends jalview.jbgui.GDesktop
           }
           setProgressBar(null, choice.hashCode());
         }
-      }, "SaveJalviewProjectThread").start();
+      }, "SaveJalviewProject").start();
     }
   }
 
@@ -1682,7 +1682,7 @@ public class Desktop extends jalview.jbgui.GDesktop
           }
           setProgressBar(null, choice.hashCode());
         }
-      }, "LoadJalviewProjectThread").start();
+      }, "LoadJalviewProject").start();
     }
   }
 
@@ -2192,7 +2192,7 @@ public class Desktop extends jalview.jbgui.GDesktop
                     dsktp.v_client.initial_update();
                   }
 
-                }, "VamsasSessionThread");
+                }, "VamsasSession");
                 rthr.start();
               }
             };
@@ -2312,7 +2312,7 @@ public class Desktop extends jalview.jbgui.GDesktop
   {
     UserQuestionnaireCheck jvq = new UserQuestionnaireCheck(url);
     // javax.swing.SwingUtilities.invokeLater(jvq);
-    new Thread(jvq, "CheckQuestionnaireThread").start();
+    new Thread(jvq, "CheckQuestionnaire").start();
   }
 
   public void checkURLLinks()
@@ -2425,7 +2425,7 @@ public class Desktop extends jalview.jbgui.GDesktop
       this.showMemoryUsage = showMemory;
       if (showMemory)
       {
-        Thread worker = new Thread(this, "ShowMemoryUsageThread");
+        Thread worker = new Thread(this, "ShowMemoryUsage");
         worker.start();
       }
       repaint();
@@ -2850,7 +2850,7 @@ public class Desktop extends jalview.jbgui.GDesktop
       }
       // JAL-940 - disabled JWS1 service configuration - always start discoverer
       // until we phase out completely
-      (t0 = new Thread(discoverer, "DiscovererThread")).start();
+      (t0 = new Thread(discoverer, "Discoverer")).start();
     }
 
     if (Cache.getDefault("SHOW_JWS2_SERVICES", true))
@@ -3006,7 +3006,7 @@ public class Desktop extends jalview.jbgui.GDesktop
           progress.setProgressBar(null, this.hashCode());
         }
       }
-    }, "OpenURLThread").start();
+    }, "OpenURL").start();
   }
 
   public static WsParamSetManager wsparamManager = null;
index a6f2d2a..ccbe1ee 100644 (file)
@@ -66,7 +66,7 @@ public abstract class JalviewDialog extends JPanel
           frame.setVisible(true);
         }
 
-      }, "UnblockedDialogThread").start();
+      }, "UnblockedDialog").start();
     }
     else
     {
index 46a4751..0fbc04a 100755 (executable)
@@ -304,7 +304,7 @@ public class OverviewPanel extends JPanel
       return;
     }
 
-    Thread thread = new Thread(this, "UpdateOverviewThread");
+    Thread thread = new Thread(this, "UpdateOverview");
     thread.start();
     repaint();
 
index 18dd8da..21cc075 100644 (file)
@@ -885,7 +885,7 @@ public class PopupMenu extends JPopupMenu implements ColourChangeListener
             showLink(url);
           }
 
-        }, "ShowURLMenuThread").start();
+        }, "ShowURLMenu").start();
       }
     });
 
@@ -931,7 +931,7 @@ public class PopupMenu extends JPopupMenu implements ColourChangeListener
             }
           }
 
-        }, "ShowGroupURLMenuThread").start();
+        }, "ShowGroupURLMenu").start();
       }
     });
 
index 95862e7..aa3d5b1 100755 (executable)
@@ -96,7 +96,7 @@ public class RedundancyPanel extends GSliderPanel implements Runnable
     slider.setMaximum(100);
     slider.setValue(100);
 
-    Thread worker = new Thread(this, "CreateRedundancyPanelThread");
+    Thread worker = new Thread(this, "CreateRedundancyPanel");
     worker.start();
 
     frame = new JInternalFrame();
index e46c5e7..d74309b 100755 (executable)
@@ -80,7 +80,7 @@ public class SplashScreen extends JPanel
   {
     this.interactiveDialog = interactive;
     // show a splashscreen that will disapper
-    Thread t = new Thread(this, "ShowSplashScreenThread");
+    Thread t = new Thread(this, "ShowSplashScreen");
     t.start();
   }
 
index aa07b7c..c0769a0 100644 (file)
@@ -352,7 +352,7 @@ public abstract class StructureViewerBase extends GStructureViewer
             // and call ourselves again.
             addStructure(pdbentry, seqs, chains, align, alignFrame);
           }
-        }, "Adding3DStructureQueueThread").start();
+        }, "Adding3DStructureQueue").start();
         return;
       }
     }
@@ -363,7 +363,7 @@ public abstract class StructureViewerBase extends GStructureViewer
     addingStructures = true;
     _started = false;
     alignAddedStructures = align;
-    worker = new Thread(this, "Adding3DStructureThread");
+    worker = new Thread(this, "Adding3DStructure");
     worker.start();
     return;
   }
index 6780921..ec5d28f 100755 (executable)
@@ -542,7 +542,7 @@ public class TreeCanvas extends JPanel implements MouseListener, Runnable,
    */
   void startPrinting()
   {
-    Thread thread = new Thread(this, "PrintTreeCanvasThread");
+    Thread thread = new Thread(this, "PrintTreeCanvas");
     thread.start();
   }
 
index f855474..6003416 100644 (file)
@@ -326,7 +326,7 @@ public class VamsasApplication implements SelectionSource, VamsasSource
         Cache.log.info("Jalview finished updating to the Vamsas Session.");
       }
 
-    }, "UpdateVamsasThread");
+    }, "UpdateVamsas");
     udthread.start();
   }
 
index be812b5..a0191a5 100644 (file)
@@ -344,7 +344,7 @@ public class WebserviceInfo extends GWebserviceInfo
     AnimatedPanel ap = new AnimatedPanel();
     titlePanel.add(ap, BorderLayout.CENTER);
 
-    Thread thread = new Thread(ap, "AnimatedPanelThread");
+    Thread thread = new Thread(ap, "AnimatedPanel");
     thread.start();
     final WebserviceInfo thisinfo = this;
     frame.addInternalFrameListener(
index dc3cadd..2053091 100644 (file)
@@ -567,7 +567,7 @@ public class WsPreferences extends GWsPreferences
         updateWsMenuConfig(false);
         refreshWsMenu(true);
       }
-    }, "RefreshWebServicesThread").start();
+    }, "RefreshWebServices").start();
 
   }
 
@@ -603,7 +603,7 @@ public class WsPreferences extends GWsPreferences
           progressBar.setVisible(false);
           validate();
         }
-      }, "RefreshWebServicesMenuProgressBarThread").start();
+      }, "RefreshWebServicesMenuProgressBar").start();
 
     }
     else
@@ -626,7 +626,7 @@ public class WsPreferences extends GWsPreferences
           Desktop.instance.setProgressBar(null, ct);
         }
 
-      }, "RefreshWebServicesMenuThread").start();
+      }, "RefreshWebServicesMenu").start();
     }
   }
 
@@ -675,7 +675,7 @@ public class WsPreferences extends GWsPreferences
         updateWsMenuConfig(false);
         refreshWsMenu(showProgressInDialog);
       }
-    }, "UpdateAndRefreshWebServicesMenuThread").start();
+    }, "UpdateAndRefreshWebServicesMenu").start();
 
   }
 }
index 045fc7e..5374bb5 100644 (file)
@@ -84,7 +84,7 @@ public class BioJsHTMLOutput extends HTMLOutput
       e.printStackTrace();
       return;
     }
-    new Thread(this, "ExportBioJsHTMLThread").start();
+    new Thread(this, "ExportBioJsHTML").start();
 
   }
 
index 71d0e4a..6735a80 100755 (executable)
@@ -104,7 +104,7 @@ public class FileLoader implements Runnable
     this.protocol = protocol;
     this.format = format;
 
-    final Thread loader = new Thread(this, "LoadFileThread");
+    final Thread loader = new Thread(this, "LoadFile");
 
     SwingUtilities.invokeLater(new Runnable()
     {
@@ -183,7 +183,7 @@ public class FileLoader implements Runnable
    */
   protected AlignFrame _LoadFileWaitTillLoaded()
   {
-    Thread loader = new Thread(this, "LoadFileWithWaitingThread");
+    Thread loader = new Thread(this, "LoadFileWithWaiting");
     loader.start();
 
     while (loader.isAlive())
index 87be23e..7d6ae4e 100644 (file)
@@ -67,7 +67,7 @@ public class HtmlSvgOutput extends HTMLOutput
       e.printStackTrace();
       return;
     }
-    new Thread(this, "ExportSvgHTMLThread").start();
+    new Thread(this, "ExportSvgHTML").start();
   }
 
   public int printUnwrapped(int pwidth, int pheight, int pi,
index 33da111..cfde4ae 100644 (file)
@@ -249,7 +249,7 @@ public class JSFunctionExec implements Runnable
       if (executor == null)
       {
         executor = new Thread(new JSFunctionExec(jvlite),
-                "JavaScriptThread");
+                "JavaScript");
         executor.start();
       }
       synchronized (jsExecQueue)
index be03591..8f45eaa 100644 (file)
@@ -125,11 +125,11 @@ public class AWTConsole extends WindowAdapter
 
     // Starting two seperate threads to read from the PipedInputStreams
     //
-    reader = new Thread(this, "AWTConsoleReader1Thread");
+    reader = new Thread(this, "AWTConsoleReader1");
     reader.setDaemon(true);
     reader.start();
     //
-    reader2 = new Thread(this, "AWTConsoleReader2Thread");
+    reader2 = new Thread(this, "AWTConsoleReader2");
     reader2.setDaemon(true);
     reader2.start();
 
@@ -150,7 +150,7 @@ public class AWTConsole extends WindowAdapter
     // We do it with a seperate Thread becasue we don't wan't to break a Thread
     // used by the Console.
     System.out.println("\nLets throw an error on this console");
-    errorThrower = new Thread(this, "AWTConsoleErrorLogThread");
+    errorThrower = new Thread(this, "AWTConsoleErrorLog");
     errorThrower.setDaemon(true);
     errorThrower.start();
   }
index 2b7c6df..c01b99c 100644 (file)
@@ -267,7 +267,7 @@ public class DBRefFetcher implements Runnable
     // TODO can we not simply write
     // if (waitTillFinished) { run(); } else { new Thread(this).start(); }
 
-    Thread thread = new Thread(this, "FetchDBRefThread");
+    Thread thread = new Thread(this, "FetchDBRef");
     thread.start();
     running = true;
 
index 06d176e..21af021 100644 (file)
@@ -213,7 +213,7 @@ public class DasSequenceFeatureFetcher
       if (reply == JvOptionPane.YES_OPTION)
       {
         Thread thread = new Thread(new FetchDBRefs(),
-                "FetchDBReferenceManagerThread");
+                "FetchDBReferenceManager");
         thread.start();
       }
       else
@@ -231,7 +231,7 @@ public class DasSequenceFeatureFetcher
   private void _startFetching()
   {
     running = true;
-    new Thread(new FetchSeqFeatures(), "FetchSeqFeaturesThread").start();
+    new Thread(new FetchSeqFeatures(), "FetchSeqFeatures").start();
   }
 
   class FetchSeqFeatures implements Runnable
index fe303f8..9bc8713 100644 (file)
@@ -237,7 +237,7 @@ public class Jws2Discoverer implements Runnable, WSMenuEntryProviderI
 
       }
       qrys.add(squery);
-      new Thread(squery, "JabaQueryThread").start();
+      new Thread(squery, "JabaQuery").start();
     }
     boolean finished = true;
     do
@@ -458,7 +458,7 @@ public class Jws2Discoverer implements Runnable, WSMenuEntryProviderI
                   changeSupport.firePropertyChange("services",
                           new Vector<Jws2Instance>(), services);
                 };
-              }, "LoadPreferredServiceThread").start();
+              }, "LoadPreferredService").start();
 
             }
           });