comment out of @j2sNative block
[jalview.git] / src / jalview / bin / JalviewJS2.java
1 package jalview.bin;
2
3 import java.awt.event.ActionEvent;
4 import java.awt.event.ActionListener;
5
6 import javax.swing.Timer;
7
8 /**
9  * Entry point for JalviewJS development. 
10  * 
11  * 
12  * 
13  * @author RM
14  *
15  */
16 public class JalviewJS2
17 {
18
19   static {
20     /**
21      * --j2sNative
22      * 
23      *            thisApplet.__Info.args =
24      *            ["open","examples/uniref50.fa","features",
25      *            "examples/exampleFeatures.txt"];
26      */
27
28     /**
29      * set space-delimited query parameters as arguments to Jalview main
30      * 
31      * @j2sNative
32      * 
33      *            var hr = decodeURI(document.location.href); var pos =
34      *            hr.indexOf("?"); if (pos > 0) { thisApplet.__Info.args =
35      *            hr.substring(pos+1).split(" "); }
36      */
37   }
38
39   public static void main(String[] args) throws Exception
40   {
41     Jalview.main(args);
42         //showFocusTimer();
43 }
44
45 protected static int focusTime = 0;
46
47 private static void showFocusTimer() {
48         
49         Timer t = new Timer(100, new ActionListener() {
50
51                 @Override
52                 public void actionPerformed(ActionEvent e) {
53                         String s = /** @j2sNative document.activeElement.id || */
54                                         null;
55
56                         s += " " + (++focusTime);
57
58                         /** @j2sNative document.title = s; */
59                 }
60
61         });
62
63         t.setRepeats(true);
64         if (/** @j2sNative true || */
65         false)
66   {
67     t.start();
68   }
69   }
70
71
72 }