From: hansonr Date: Mon, 29 Jul 2019 20:14:51 +0000 (-0500) Subject: JAL-3369 JAL-3253-applet adds JS app.showOverview() X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=7d52ef194d39e75fed7730041da25c48e456cf8c;hp=7a5cac232c59bba9964ec32ecdd787b8028cde48;p=jalview.git JAL-3369 JAL-3253-applet adds JS app.showOverview() --- 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