X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fappletgui%2FFeatureSettings.java;h=db7d9b368bb7c8b06a895d7652d5d69aa27932cc;hb=7ce72ca7fadf35a249427ecb836b22abb04ab653;hp=4a0ae160dfe288a58e35ec846b960bed6a30fc3a;hpb=8d5a12d996b49525f7c5b83f3cc280aeb7c3fda7;p=jalview.git diff --git a/src/jalview/appletgui/FeatureSettings.java b/src/jalview/appletgui/FeatureSettings.java index 4a0ae16..db7d9b3 100755 --- a/src/jalview/appletgui/FeatureSettings.java +++ b/src/jalview/appletgui/FeatureSettings.java @@ -1,13 +1,13 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7) - * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8) + * Copyright (C) 2012 J Procter, AM Waterhouse, LM Lui, J Engelhardt, G Barton, M Clamp, S Searle * * This file is part of Jalview. * * Jalview is free software: you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - * + * * Jalview is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty * of MERCHANTABILITY or FITNESS FOR A PARTICULAR @@ -263,7 +263,8 @@ public class FeatureSettings extends Panel implements ItemListener, rdrw = true; groupPanel.removeAll(); } - // TODO: JAL-964 - smoothly incorporate new group entries if panel already displayed and new groups present + // TODO: JAL-964 - smoothly incorporate new group entries if panel already + // displayed and new groups present Enumeration gps = fr.featureGroups.keys(); while (gps.hasMoreElements()) { @@ -291,15 +292,15 @@ public class FeatureSettings extends Panel implements ItemListener, SequenceFeature[] tmpfeatures; String group = null, type; Vector visibleChecks = new Vector(); - - for (int i = 0; i < av.alignment.getHeight(); i++) + AlignmentI alignment = av.getAlignment(); + for (int i = 0; i < alignment.getHeight(); i++) { - if (av.alignment.getSequenceAt(i).getSequenceFeatures() == null) + if (alignment.getSequenceAt(i).getSequenceFeatures() == null) { continue; } - tmpfeatures = av.alignment.getSequenceAt(i).getSequenceFeatures(); + tmpfeatures = alignment.getSequenceAt(i).getSequenceFeatures(); int index = 0; while (index < tmpfeatures.length) {