if (sfetch == null
|| dasRegistry != Cache.getDasSourceRegistry()
|| lastDasSourceRegistry != (Cache.getDasSourceRegistry()
- .getDasRegistryURL() + Cache
- .getDasSourceRegistry().getLocalSourceString())
- .hashCode())
+ .getDasRegistryURL() + Cache.getDasSourceRegistry()
+ .getLocalSourceString()).hashCode())
{
_initingFetcher = true;
initingThread = Thread.currentThread();
public SequenceFetcher(IProgressIndicator guiIndic,
final String selectedDb, final String queryString)
{
- this._isConstructing=true;
+ this._isConstructing = true;
this.progressIndicator = guiIndic;
final SequenceFetcher us = this;
// launch initialiser thread
if (getSequenceFetcherSingleton(progressIndicator) != null)
{
us.initGui(progressIndicator, selectedDb, queryString);
- us._isConstructing=false;
+ us._isConstructing = false;
}
else
{
});
sf.start();
}
+
/**
- * blocking call which creates a new sequence fetcher panel, configures it and presses the OK button with the given database and query.
+ * blocking call which creates a new sequence fetcher panel, configures it and
+ * presses the OK button with the given database and query.
+ *
* @param database
* @param query
*/
public static List<AlignFrame> fetchAndShow(String database, String query)
{
- final SequenceFetcher sf = new SequenceFetcher(Desktop.instance, database, query);
+ final SequenceFetcher sf = new SequenceFetcher(Desktop.instance,
+ database, query);
while (sf._isConstructing)
{
- try { Thread.sleep(50);
+ try
+ {
+ Thread.sleep(50);
} catch (Exception q)
{
return Collections.emptyList();
{
};
-
+
/**
* initialise the database and query for this fetcher panel
*
new UniprotFTSPanel(this);
frame.dispose();
}
+
private void otherSourceAction()
{
try
} catch (Exception e)
{
Cache.log.info(
- "Error retrieving " + accession
- + " from " + proxy.getDbName(), e);
+ "Error retrieving " + accession + " from "
+ + proxy.getDbName(), e);
}
return success;
}
try
{
- af.setMaximum(Cache.getDefault("SHOW_FULLSCREEN",
- false));
+ af.setMaximum(Cache.getDefault("SHOW_FULLSCREEN", false));
} catch (Exception ex)
{
}