import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import ext.edu.ucsf.rbvi.strucviz2.*;
+import ext.edu.ucsf.rbvi.strucviz2.StructureManager;
/***************************************************
* Thread Classes *
public List<String> getResponse(String command) {
List<String> reply;
// System.out.println("getResponse: "+command);
+ // TODO do we need a maximum wait time before aborting?
while (!replyLog.containsKey(command)) {
try {
Thread.currentThread().sleep(100);
} catch (InterruptedException e) {
}
if (replyLog.containsKey(command))
- replyLog.remove(command);
+ {
+ replyLog.remove(command);
+ }
return;
}
*/
private void chimeraRead() throws IOException {
if (chimera == null)
- return;
+ {
+ return;
+ }
String line = null;
while ((line = lineReader.readLine()) != null) {
replyLog.put(command, reply);
}
if (updateModels)
- (new ModelUpdater()).start();
+ {
+ (new ModelUpdater()).start();
+ }
if (updateSelection)
- (new SelectionUpdater()).start();
+ {
+ (new SelectionUpdater()).start();
+ }
if (importNetwork) {
(new NetworkUpdater(line)).start();
}