}
});
}
-
- /**
- * Send an asynchronous command to Chimera, in a new thread, optionally with
- * an 'in progress' message in a progress bar somewhere
- */
- @Override
- protected void sendAsynchronousCommand(final String command,
- final String progressMsg)
- {
- final JalviewStructureDisplayI theViewer = getViewer();
- final long handle = progressMsg == null ? 0
- : theViewer.startProgressBar(progressMsg);
- SwingUtilities.invokeLater(new Runnable()
- {
- @Override
- public void run()
- {
- try
- {
- executeCommand(command, false);
- } finally
- {
- if (progressMsg != null)
- {
- theViewer.stopProgressBar(null, handle);
- }
- }
- }
- });
- }
}