package jalview.ws.jws2;
+import jalview.api.AlignCalcManagerI2;
import jalview.api.AlignCalcWorkerI;
import jalview.bin.Cache;
import jalview.bin.Console;
// is there an aaCon worker already present - if so, set it to use the
// given service handle
{
- List<AlignCalcWorkerI> aaconClient = alignFrame.getViewport()
- .getCalcManager()
- .getWorkersOfClass(aaui.getClient());
- if (aaconClient != null && aaconClient.size() > 0)
+ AlignCalcManagerI2 mger = alignFrame.getViewport()
+ .getCalcManager();
+ if (mger != null)
{
- SeqAnnotationServiceCalcWorker worker = (SeqAnnotationServiceCalcWorker) aaconClient
- .get(0);
- if (!worker.service.getHostURL().equals(service.getHostURL()))
+ List<AlignCalcWorkerI> aaconClient = mger
+ .getWorkersOfClass(aaui.getClient());
+ if (aaconClient != null && aaconClient.size() > 0)
{
- // javax.swing.SwingUtilities.invokeLater(new Runnable()
+ SeqAnnotationServiceCalcWorker worker = (SeqAnnotationServiceCalcWorker) aaconClient
+ .get(0);
+ if (!worker.service.getHostURL().equals(service.getHostURL()))
{
- // @Override
- // public void run()
+ // javax.swing.SwingUtilities.invokeLater(new Runnable()
{
- removeCurrentAAConWorkerFor(aaui, alignFrame);
- buildCurrentAAConWorkerFor(aaui, alignFrame, service);
- }
- } // );
+ // @Override
+ // public void run()
+ {
+ removeCurrentAAConWorkerFor(aaui, alignFrame);
+ buildCurrentAAConWorkerFor(aaui, alignFrame, service);
+ }
+ } // );
+ }
}
}
}