JAL-2694 StructureSelectionManager.getMapping takes a list of Chain IDs per sequence...
[jalview.git] / src / jalview / gui / StructureViewerBase.java
index 3ba9947..8c8b81d 100644 (file)
@@ -448,18 +448,17 @@ public abstract class StructureViewerBase extends GStructureViewer
    * and updates any viewers that have the PDB file
    * 
    * @param seq
-   * @param chains
    * @param apanel
    * @param pdbFilename
    */
   protected void addSequenceMappingsToStructure(SequenceI[] seq,
-          String[] chains, final AlignmentPanel apanel, String pdbFilename)
+          final AlignmentPanel apanel, String pdbFilename)
   {
     // TODO : Fix multiple seq to one chain issue here.
     /*
      * create the mappings
      */
-    apanel.getStructureSelectionManager().setMapping(seq, chains,
+    apanel.getStructureSelectionManager().setMapping(seq, null,
             pdbFilename, DataSourceType.FILE);
 
     /*
@@ -509,7 +508,7 @@ public abstract class StructureViewerBase extends GStructureViewer
    * @param pdbId
    * @return true if the user chooses to add to a viewer, or to cancel entirely
    */
-  protected boolean addAlreadyLoadedFile(SequenceI[] seq, String[] chains,
+  protected boolean addAlreadyLoadedFile(SequenceI[] seq,
           final AlignmentPanel apanel, String pdbId)
   {
     boolean finished = false;
@@ -535,7 +534,7 @@ public abstract class StructureViewerBase extends GStructureViewer
       }
       else if (option == JvOptionPane.YES_OPTION)
       {
-        addSequenceMappingsToStructure(seq, chains, apanel, alreadyMapped);
+        addSequenceMappingsToStructure(seq, apanel, alreadyMapped);
         finished = true;
       }
     }