From: amwaterhouse Date: Tue, 14 Jun 2005 16:37:10 +0000 (+0000) Subject: add version X-Git-Tag: Release_2_0~32 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9961c690ef2e43c0bbd12ff37d691c413c2968d0;p=jalview.git add version --- diff --git a/src/jalview/binding/JalviewModel.java b/src/jalview/binding/JalviewModel.java index a558b10..8edd012 100755 --- a/src/jalview/binding/JalviewModel.java +++ b/src/jalview/binding/JalviewModel.java @@ -40,6 +40,11 @@ public class JalviewModel implements java.io.Serializable { private java.util.Date _creationDate; /** + * Field _version + */ + private java.lang.String _version; + + /** * Field _vamsasModel */ private jalview.binding.VamsasModel _vamsasModel; @@ -97,6 +102,17 @@ public class JalviewModel implements java.io.Serializable { } //-- jalview.binding.VamsasModel getVamsasModel() /** + * Returns the value of field 'version'. + * + * @return String + * @return the value of field 'version'. + */ + public java.lang.String getVersion() + { + return this._version; + } //-- java.lang.String getVersion() + + /** * Method isValid * * @@ -174,6 +190,16 @@ public class JalviewModel implements java.io.Serializable { } //-- void setVamsasModel(jalview.binding.VamsasModel) /** + * Sets the value of field 'version'. + * + * @param version the value of field 'version'. + */ + public void setVersion(java.lang.String version) + { + this._version = version; + } //-- void setVersion(java.lang.String) + + /** * Method unmarshal * * diff --git a/src/jalview/gui/Jalview2XML.java b/src/jalview/gui/Jalview2XML.java index 34502f1..ee038fc 100755 --- a/src/jalview/gui/Jalview2XML.java +++ b/src/jalview/gui/Jalview2XML.java @@ -140,6 +140,7 @@ public class Jalview2XML object.setVamsasModel(new VamsasModel()); object.setCreationDate(new java.util.Date(timeStamp)); + object.setVersion(jalview.bin.Cache.VERSION); jalview.datamodel.AlignmentI jal = af.viewport.alignment;