JAL-1751 provided method to overide isCellEditable for the PDB response table model
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Thu, 28 May 2015 10:45:50 +0000 (11:45 +0100)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Thu, 28 May 2015 10:45:50 +0000 (11:45 +0100)
src/jalview/ws/uimodel/PDBRestResponse.java

index 3b5b05c..2814a46 100644 (file)
@@ -91,8 +91,14 @@ public class PDBRestResponse
   public static DefaultTableModel getTableModel(PDBRestRequest request,
           Collection<PDBResponseSummary> summariesList)
   {
-    DefaultTableModel tableModel = new DefaultTableModel();
-
+    DefaultTableModel tableModel = new DefaultTableModel()
+    {
+      @Override
+      public boolean isCellEditable(int row, int column)
+      {
+        return false;
+      }
+    };
     if (request.getAssociatedSequence() != null)
     {
       tableModel.addColumn("Sequence"); // Create sequence column header if