From 575dc2eb1db7f9862e2c4af6718e9bc1d0c54eb7 Mon Sep 17 00:00:00 2001 From: tjc <tjc@ee4ac58c-ac51-4696-9907-e4b3aa274f04> Date: Thu, 3 Sep 2009 13:33:18 +0000 Subject: [PATCH] copy the header if a GFFDocumentEntry is created from a DatabaseDocumentEntry git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@11706 ee4ac58c-ac51-4696-9907-e4b3aa274f04 --- uk/ac/sanger/artemis/io/SimpleDocumentEntry.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/uk/ac/sanger/artemis/io/SimpleDocumentEntry.java b/uk/ac/sanger/artemis/io/SimpleDocumentEntry.java index 51f86e7d2..41d77e236 100644 --- a/uk/ac/sanger/artemis/io/SimpleDocumentEntry.java +++ b/uk/ac/sanger/artemis/io/SimpleDocumentEntry.java @@ -20,7 +20,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - * $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/io/SimpleDocumentEntry.java,v 1.29 2009-08-20 15:25:14 gv1 Exp $ + * $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/io/SimpleDocumentEntry.java,v 1.30 2009-09-03 13:33:18 tjc Exp $ */ package uk.ac.sanger.artemis.io; @@ -40,7 +40,7 @@ import javax.swing.JOptionPane; * This class contains the methods common to all DocumentEntry objects. * * @author Kim Rutherford <kmr@sanger.ac.uk> - * @version $Id: SimpleDocumentEntry.java,v 1.29 2009-08-20 15:25:14 gv1 Exp $ + * @version $Id: SimpleDocumentEntry.java,v 1.30 2009-09-03 13:33:18 tjc Exp $ **/ abstract public class SimpleDocumentEntry @@ -321,7 +321,8 @@ abstract public class SimpleDocumentEntry { this.entry_information = new SimpleEntryInformation(entry_information); - if(new_entry.getClass().equals(this.getClass())) + if(new_entry.getClass().equals(this.getClass()) || + (this instanceof GFFDocumentEntry && new_entry instanceof DatabaseDocumentEntry)) { try { -- GitLab