From: Jim Procter Date: Wed, 12 Feb 2020 17:10:07 +0000 (+0000) Subject: JAL-3187 view controller UI api method to show feature settings UI
 X-Git-Tag: Develop-2_11_2_0-d20201215~101^2~18 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=45922d35b5dc6c73b3d0c55ef2ab884079723782;p=jalview.git JAL-3187 view controller UI api method to show feature settings UI
 --- diff --git a/src/jalview/api/AlignViewControllerGuiI.java b/src/jalview/api/AlignViewControllerGuiI.java index 86e61e7..56414d8 100644 --- a/src/jalview/api/AlignViewControllerGuiI.java +++ b/src/jalview/api/AlignViewControllerGuiI.java @@ -62,4 +62,12 @@ public interface AlignViewControllerGuiI * @return */ FeatureSettingsControllerI getFeatureSettingsUI(); + + /** + * displays the Feature Settigns control panel for the alignment view - if one + * exists it is closed and re-opened. + * + * @return the current feature settings controller + */ + FeatureSettingsControllerI showFeatureSettingsUI(); } diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index fcb6572..f05c118 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -3187,6 +3187,12 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, @Override public void featureSettings_actionPerformed(ActionEvent e) { + showFeatureSettingsUI(); + } + + @Override + public FeatureSettingsControllerI showFeatureSettingsUI() + { if (featureSettings != null) { featureSettings.close(); @@ -3199,6 +3205,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, showSeqFeatures_actionPerformed(null); } featureSettings = new FeatureSettings(this); + return featureSettings; } /**