AppConsole I don't think there is a way to obtain a reference to the
execThread used because it's package protected (I write this nervously considering our last visibility modifier conversation haha).
It'd be nice to have the methods
ExecuteCommandThread instance instantiated, or else
null if none is.
That would allow for the parent application to wait until the thread has completed.
On 6 February 2013 23:36, N David Brown <firstname.lastname@example.org> wrote:
Hmm if I don't use
loadInline then I can't immediately retrieve the molecule from the viewer.
Is there a callback mechanism for the loading method you recommended, or a way to sleep the current thread until that thread has completed?
On 6 February 2013 23:28, N David Brown <email@example.com> wrote:
mol is a
JmolMolecule instance retrieved from a
Viewer instance like so:
Thanks for the tip Bob. So if I call a
load command of that format using
AppConsole#execute it will be thread-safe?
I have no idea. What's "mol" ?
By the way, loadInLine is not thread-safe. It is much better to use a script and just enter the data as:
load DATA "model mydata"
.....mol data here...
end "model mydata" .... more load parameters here....