JAL-966 promote getName to an api method
authorJim Procter <jprocter@dundee.ac.uk>
Thu, 27 Nov 2014 10:29:00 +0000 (10:29 +0000)
committerJim Procter <jprocter@dundee.ac.uk>
Thu, 27 Nov 2014 10:29:00 +0000 (10:29 +0000)
src/jalview/api/AlignmentViewPanel.java
src/jalview/appletgui/AlignmentPanel.java
src/jalview/gui/AlignmentPanel.java

index 7ff3a6a..0955cb4 100644 (file)
@@ -50,4 +50,10 @@ public interface AlignmentViewPanel extends OOMHandlerI
    * ensuring the alignment is still visible.
    */
   void adjustAnnotationHeight();
+
+  /**
+   * 
+   * @return displayed name for the view
+   */
+  String getViewName();
 }
index 02ad0cd..5062874 100644 (file)
@@ -965,6 +965,12 @@ public class AlignmentPanel extends Panel implements AdjustmentListener,
   }
 
   @Override
+  public String getViewName()
+  {
+    return getName();
+  }
+
+  @Override
   public StructureSelectionManager getStructureSelectionManager()
   {
     return StructureSelectionManager
index 5527f1e..2398bda 100644 (file)
@@ -1503,11 +1503,8 @@ public class AlignmentPanel extends GAlignmentPanel implements
     return av.getAlignment();
   }
 
-  /**
-   * get the name for this view
-   * 
-   * @return
-   */
+
+  @Override
   public String getViewName()
   {
     return av.viewName;