X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fjavascript%2FJsSelectionSender.java;h=66b1cac99e01900734d69455d2ca69dd00cebb7c;hb=865a855a4ca87eadb3e5ff284ed32ed307d9c34b;hp=e55c658e36cec45414b4c6d2d252db49257f9159;hpb=d8a109085881c62e2fdf6fd3ece21d9b3dfdb2e2;p=jalview.git diff --git a/src/jalview/javascript/JsSelectionSender.java b/src/jalview/javascript/JsSelectionSender.java index e55c658..66b1cac 100644 --- a/src/jalview/javascript/JsSelectionSender.java +++ b/src/jalview/javascript/JsSelectionSender.java @@ -1,13 +1,28 @@ +/* + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.0b1) + * Copyright (C) 2014 The Jalview Authors + * + * 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 + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with Jalview. If not, see . + * The Jalview Authors are detailed in the 'AUTHORS' file. + */ package jalview.javascript; -import java.net.URL; import jalview.appletgui.AlignFrame; -import jalview.appletgui.AlignViewport; import jalview.bin.JalviewLite; import jalview.datamodel.ColumnSelection; import jalview.datamodel.SequenceGroup; import jalview.structure.SelectionSource; -import netscape.javascript.JSObject; public class JsSelectionSender extends JSFunctionExec implements jalview.structure.SelectionListener, JsCallBack @@ -62,7 +77,7 @@ public class JsSelectionSender extends JSFunctionExec implements { strt = seqsel.getStartRes(); } - if (end==-1 || end > seqsel.getEndRes()) + if (end == -1 || end > seqsel.getEndRes()) { end = seqsel.getEndRes(); } @@ -94,10 +109,11 @@ public class JsSelectionSender extends JSFunctionExec implements } System.err.println("Relaying selection to jsfunction:" + _listener); - executeJavascriptFunction( _listener, - new Object[] - { src, setid, jvlite.arrayToSeparatorList(seqs), - jvlite.arrayToSeparatorList(cols) }); + executeJavascriptFunction( + _listener, + new Object[] + { src, setid, jvlite.arrayToSeparatorList(seqs), + jvlite.arrayToSeparatorList(cols) }); } catch (Exception ex) { System.err @@ -114,7 +130,6 @@ public class JsSelectionSender extends JSFunctionExec implements } } - @Override public AlignFrame getAlignFrame() {