Refactored AnnotationColumnChoser and AnnotationColorChooser to apply the DRY principle
[jalview.git] / src / jalview / gui / AlignViewport.java
index 10e14d1..cff9e94 100644 (file)
@@ -151,7 +151,7 @@ public class AlignViewport extends AlignmentViewport implements
 
   private boolean rightAlignIds = false;
 
-  private AnnotationColumnSelection currentAnnotationColumnSelectionState;
+  private AnnotationColumnChooser currentAnnotationColumnSelectionState;
   /**
    * Creates a new AlignViewport object.
    * 
@@ -1320,13 +1320,13 @@ public class AlignViewport extends AlignmentViewport implements
     this.rightAlignIds = rightAlignIds;
   }
 
-  public AnnotationColumnSelection getCurrentAnnotationColumnSelectionState()
+  public AnnotationColumnChooser getCurrentAnnotationColumnSelectionState()
   {
     return currentAnnotationColumnSelectionState;
   }
 
   public void setCurrentAnnotationColumnSelectionState(
-          AnnotationColumnSelection currentAnnotationColumnSelectionState)
+          AnnotationColumnChooser currentAnnotationColumnSelectionState)
   {
     this.currentAnnotationColumnSelectionState = currentAnnotationColumnSelectionState;
   }