package jalview.ws2.gui;
-import static java.util.Objects.requireNonNullElse;
-
import java.util.ArrayList;
import java.util.Arrays;
import java.util.BitSet;
import javax.swing.SwingUtilities;
import jalview.bin.Cache;
+import jalview.bin.Console;
import jalview.datamodel.Alignment;
import jalview.datamodel.AlignmentI;
import jalview.datamodel.AlignmentOrder;
String panelInfo = String.format("%s using service hosted at %s%n%s",
service.getName(), service.getUrl(), service.getDescription());
infoPanel = new WebserviceInfo(service.getName(), panelInfo, false);
- String actionName = requireNonNullElse(action.getName(), "Alignment");
+ String actionName = action.getName() != null ? action.getName() : "Alignment";
alnTitle = String.format("%s %s of %s", service.getName(), actionName,
frame.getTitle());
}
@Override
public void taskException(TaskI<AlignmentResult> source, Exception e)
{
- Cache.log.error(String.format("Service %s raised an exception.", service.getName()), e);
+ Console.error(String.format("Service %s raised an exception.", service.getName()), e);
infoPanel.appendProgressText(e.getMessage());
}
@Override
- public void taskRestarted(TaskI<AlignmentResult> source)
- {
- // alignment services are not restartable
- }
-
- @Override
public void subJobStatusChanged(TaskI<AlignmentResult> source, JobI job, JobStatus status)
{
int i = ArrayUtils.indexOf(jobs, job);