JAL-2071 further refactoring, optimisation, and house keeping for the generic Free...
[jalview.git] / src / jalview / fts / core / FTSRestResponse.java
index 17204d7..c56b8c8 100644 (file)
@@ -1,6 +1,6 @@
 /*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
- * Copyright (C) 2014 The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
  * 
  * This file is part of Jalview.
  * 
@@ -30,8 +30,8 @@ import javax.swing.JTable;
 import javax.swing.table.DefaultTableModel;
 
 /**
- * Represents the response model produced by the PDBRestClient upon successful
- * execution of a given request
+ * Represents the response model generated by the FTSRestClient upon successful
+ * execution of a given FTS request
  * 
  * @author tcnofoegbu
  *
@@ -79,7 +79,7 @@ public class FTSRestResponse
    * on the request parameters
    * 
    * @param request
-   *          the PDBRestRequest object which holds useful information for
+   *          the FTSRestRequest object which holds useful information for
    *          creating a table model
    * @param summariesList
    *          the summary list which contains the data for populating the
@@ -107,12 +107,7 @@ public class FTSRestResponse
         {
           return String.class;
         }
-        if (cols[columnIndex - colOffset].getGroup().getName()
-                .equalsIgnoreCase("Quality Measures"))
-        {
-          return Double.class;
-        }
-        return String.class;
+        return cols[columnIndex - colOffset].getDataColumnClass();
       }
 
     };