Skip to content
Snippets Groups Projects
Commit 575dc2eb authored by tjc's avatar tjc
Browse files

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
parent 3729986d
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 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; package uk.ac.sanger.artemis.io;
...@@ -40,7 +40,7 @@ import javax.swing.JOptionPane; ...@@ -40,7 +40,7 @@ import javax.swing.JOptionPane;
* This class contains the methods common to all DocumentEntry objects. * This class contains the methods common to all DocumentEntry objects.
* *
* @author Kim Rutherford <kmr@sanger.ac.uk> * @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 abstract public class SimpleDocumentEntry
...@@ -321,7 +321,8 @@ abstract public class SimpleDocumentEntry ...@@ -321,7 +321,8 @@ abstract public class SimpleDocumentEntry
{ {
this.entry_information = new SimpleEntryInformation(entry_information); 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 try
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment