From 7d52ef194d39e75fed7730041da25c48e456cf8c Mon Sep 17 00:00:00 2001 From: hansonr Date: Mon, 29 Jul 2019 15:14:51 -0500 Subject: [PATCH] JAL-3369 JAL-3253-applet adds JS app.showOverview() --- src/jalview/bin/Jalview.java | 5 +++++ src/jalview/bin/JalviewJSApi.java | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index 060d6ad..28d029c 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -2044,6 +2044,11 @@ public class Jalview implements ApplicationSingletonI, JalviewJSApi } + @Override + public void showOverview() + { + currentAlignFrame.overviewMenuItem_actionPerformed(null); + } } diff --git a/src/jalview/bin/JalviewJSApi.java b/src/jalview/bin/JalviewJSApi.java index 61850a4..b1fed25 100644 --- a/src/jalview/bin/JalviewJSApi.java +++ b/src/jalview/bin/JalviewJSApi.java @@ -12,13 +12,23 @@ import jalview.javascript.JalviewLiteJsApi; public interface JalviewJSApi extends JalviewLiteJsApi { + void showOverview(); + + /** + * process commandline arguments after the JavaScript application has started + * + * @param args + * @return + */ Object parseArguments(String[] args); + /** * Open a new Tree panel on the desktop statically. Params are standard (not * set by Groovy). No dialog is opened. * * @param af + * may be null * @param treeType * @param modelName * @return null, or the string "label.you_need_at_least_n_sequences" if number @@ -32,6 +42,7 @@ public interface JalviewJSApi extends JalviewLiteJsApi * necessarily using a dialog. * * @param af + * may be null * @param modelName * @return the PCAPanel, or the string "label.you_need_at_least_n_sequences" * if number of sequences selected is inappropriate -- 1.7.10.2