}
private IProgressIndicator progressIndicator;
- private boolean _isConstructing=false;
+
+ private volatile boolean _isConstructing = false;
private List<AlignFrame> newAlframes = null;
try { Thread.sleep(50);
} catch (Exception q)
{
- return Collections.EMPTY_LIST;
+ return Collections.emptyList();
}
}
sf.newAlframes = new ArrayList<AlignFrame>();
try
{
List<DbSourceProxy> sp = sfetch.getSourceProxy(selectedDb);
- if (sp == null || sp.size() != 1)
+ for (DbSourceProxy sourcep : sp)
+ {
+ if (sourcep.getTier() == 0)
+ {
+ database.selection = Arrays
+ .asList(new DbSourceProxy[] { sourcep });
+ break;
+ }
+ }
+ if (database.selection == null || database.selection.size() == 0)
{
System.err.println("Ignoring fetch parameter db='" + selectedDb
+ "'");
return false;
}
- database.selection = sp;
textArea.setText(queryString);
} catch (Exception q)
{