From a5e00be6c527ac5634feda8ce9c58e8c9763fdcf Mon Sep 17 00:00:00 2001
From: tjc <tjc@ee4ac58c-ac51-4696-9907-e4b3aa274f04>
Date: Mon, 19 Mar 2007 10:14:05 +0000
Subject: [PATCH] add setReadOnly

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@5693 ee4ac58c-ac51-4696-9907-e4b3aa274f04
---
 uk/ac/sanger/artemis/io/GFFDocumentEntry.java | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/uk/ac/sanger/artemis/io/GFFDocumentEntry.java b/uk/ac/sanger/artemis/io/GFFDocumentEntry.java
index 9dc8a0c72..240e386fb 100644
--- a/uk/ac/sanger/artemis/io/GFFDocumentEntry.java
+++ b/uk/ac/sanger/artemis/io/GFFDocumentEntry.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/GFFDocumentEntry.java,v 1.39 2007-02-16 09:36:18 tjc Exp $
+ * $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/io/GFFDocumentEntry.java,v 1.40 2007-03-19 10:14:05 tjc Exp $
  */
 
 package uk.ac.sanger.artemis.io;
@@ -42,13 +42,14 @@ import java.sql.Timestamp;
  *  A DocumentEntry that can read an GFF entry from a Document.
  *
  *  @author Kim Rutherford
- *  @version $Id: GFFDocumentEntry.java,v 1.39 2007-02-16 09:36:18 tjc Exp $
+ *  @version $Id: GFFDocumentEntry.java,v 1.40 2007-03-19 10:14:05 tjc Exp $
  **/
 
 public class GFFDocumentEntry extends SimpleDocumentEntry
     implements DocumentEntry 
 {
   private boolean finished_constructor = false;
+  private boolean isReadOnly = false;
   
   /**
    *  Create a new GFFDocumentEntry object associated with the given
@@ -106,10 +107,18 @@ public class GFFDocumentEntry extends SimpleDocumentEntry
    *  Returns true if and only if this entry is read only.  For now this
    *  always returns true - GFFDocumentEntry objects can't be changed.
    **/
+  /**
+   *  Returns true if and only if this entry is read only.  For now this
+   *  always returns true - BlastDocumentEntry objects can't be changed.
+   **/
   public boolean isReadOnly() 
   {
-//  return finished_constructor;
-    return false;
+    return isReadOnly;
+  }
+  
+  public void setReadOnly(final boolean isReadOnly)
+  {
+    this.isReadOnly = isReadOnly;
   }
 
   /**
-- 
GitLab