From 45922d35b5dc6c73b3d0c55ef2ab884079723782 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Wed, 12 Feb 2020 17:10:07 +0000 Subject: [PATCH] =?utf8?q?JAL-3187=20view=20controller=20UI=20api=20method=20?= =?utf8?q?to=20show=20feature=20settings=20UI=E2=80=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/jalview/api/AlignViewControllerGuiI.java | 8 ++++++++ src/jalview/gui/AlignFrame.java | 7 +++++++ 2 files changed, 15 insertions(+) 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; } /** -- 1.7.10.2