JAL-2465 bugfix and rerefactor renamed getPdbFile() method to getStructureFile()
[jalview.git] / src / jalview / structure / StructureListener.java
index 69658bf..9fde3f1 100644 (file)
@@ -20,6 +20,8 @@
  */
 package jalview.structure;
 
+import jalview.datamodel.SequenceI;
+
 import java.util.List;
 
 public interface StructureListener
@@ -29,7 +31,7 @@ public interface StructureListener
    * handles messages for, or null if generic listener (only used by
    * removeListener method)
    */
-  public String[] getPdbFile();
+  public String[] getStructureFiles();
 
   /**
    * Called by StructureSelectionManager to inform viewer to highlight given
@@ -56,4 +58,12 @@ public interface StructureListener
    * @param svl
    */
   public void releaseReferences(Object svl);
+
+  /**
+   * Answers true if this listener is interested in the given sequence
+   * 
+   * @param seq
+   * @return
+   */
+  public boolean isListeningFor(SequenceI seq);
 }