From: jprocter Date: Mon, 21 Jun 2010 10:16:50 +0000 (+0000) Subject: set program name to service type (see related issues to JAL-493 re setting provenance... X-Git-Tag: Release_2_6~165 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=244588b87ac3818d6ff13050aa947feb823f5cd4;p=jalview.git set program name to service type (see related issues to JAL-493 re setting provenance correctly) --- diff --git a/src/jalview/ws/jws2/MsaWSThread.java b/src/jalview/ws/jws2/MsaWSThread.java index 3ecce57..416c5d7 100644 --- a/src/jalview/ws/jws2/MsaWSThread.java +++ b/src/jalview/ws/jws2/MsaWSThread.java @@ -347,6 +347,12 @@ class MsaWSThread extends AWS2Thread implements WSClientI { this.lastChunk = lastChunk; } + + String alignmentProgram=null; + public String getAlignmentProgram() + { + return alignmentProgram; + } } @@ -419,6 +425,7 @@ class MsaWSThread extends AWS2Thread implements WSClientI } ((MsaWSJob) jobs[j]).preset = preset; ((MsaWSJob) jobs[j]).arguments = paramset; + ((MsaWSJob) jobs[j]).alignmentProgram = wsname; if (njobs > 0) { wsinfo @@ -690,7 +697,7 @@ class MsaWSThread extends AWS2Thread implements WSClientI { msjob = (MsaWSJob)jobs[j]; Object[] res = msjob.getAlignment(); - lastProgram = msjob.alignment.getMetadata().getProgram().name(); + lastProgram = msjob.getAlignmentProgram(); alorders.add(res[1]); results[j] = (SequenceI[]) res[0]; orders[j] = (AlignmentOrder) res[1];