- private IProgressIndicator progressIndicator;
-
- private volatile boolean _isConstructing = false;
-
- private List<AlignFrame> newAlframes = null;
-
- public SequenceFetcher(IProgressIndicator guiIndic)
- {
- this(guiIndic, null, null);
- }
-
- public SequenceFetcher(IProgressIndicator guiIndic,
- final String selectedDb, final String queryString)
- {
- this._isConstructing = true;
- this.progressIndicator = guiIndic;
- final SequenceFetcher us = this;
- // launch initialiser thread
- Thread sf = new Thread(new Runnable()
- {
-
- @Override
- public void run()
- {
- if (getSequenceFetcherSingleton(progressIndicator) != null)
- {
- us.initGui(progressIndicator, selectedDb, queryString);
- us._isConstructing = false;
- }
- else
- {
- javax.swing.SwingUtilities.invokeLater(new Runnable()
- {
- @Override
- public void run()
- {
- JvOptionPane.showInternalMessageDialog(Desktop.desktop,
- MessageManager.getString(
- "warn.couldnt_create_sequence_fetcher_client"),
- MessageManager.getString(
- "label.couldnt_create_sequence_fetcher"),
- JvOptionPane.ERROR_MESSAGE);
- }
- });
-
- // raise warning dialog
- }
- }
- });
- sf.start();
- }
-