From 302f494c410f842d69b8a4d674f923dc33efcfa9 Mon Sep 17 00:00:00 2001 From: BobHanson Date: Wed, 3 Jun 2020 16:30:12 -0500 Subject: [PATCH] adds link for __j2sflags.htm to template.html --- utils/jalviewjs/site-resources/___j2sflags.htm | 32 ++++++++++++++++++++++++ utils/jalviewjs/template.html | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 utils/jalviewjs/site-resources/___j2sflags.htm diff --git a/utils/jalviewjs/site-resources/___j2sflags.htm b/utils/jalviewjs/site-resources/___j2sflags.htm new file mode 100644 index 0000000..62a786d --- /dev/null +++ b/utils/jalviewjs/site-resources/___j2sflags.htm @@ -0,0 +1,32 @@ + + +URL command line flags for SwingJS +

URL command-line arguments for SwingJS

+
To enable these flags, simply add them after # or ? on your page. +
The test is very simple -- just a case-sensitive string check. +
Separate them with & For example: +
test_Test_Class.html?j2sverbose&j2snozcore&j2strace=applet +

+ + + + + + + + + + + + + + + + + + + + +
j2sargs=a|b|carguments to be passed on to application.main(); use "|" to separate arguments. Overrides Info.args, which should be an array of strings, if present
j2sdebugclipshows all show/restore and clip operations in JSGraphics2D
j2sdebugcodedeprecated; see j2snocore
j2sdebugcoredeprecated; see j2snozcore
j2sdebugpaintreport repaint manager information
j2seventsreport ComponentEvent instances
j2sfilter=xxxremove messages with the specified text from System.out
j2sheadlessrun headlessly (must be a main()-based application or library without Swing or AWT)
j2slang=en_USdefault language for java.util.Locale (overrides Info.language)
j2smousereport mouse events other than mousemove
j2smousemovereport all mouse events, including mousemove
j2snocoredo not load core files (from j2s/core/)
j2snoevaluse new Function() instead of eval(); breaks debugging, experimental
j2snooutputreport only System.err message, not System.out
j2snozcoreuse the uncompressed j2s/core/xxxcore.js files, not the compressed core.z.js files
j2sprofiletrack object creation; use J2S.getProfile() when you want a report; J2S.getProfile() or J2S.getProfile(nsec) to restart profiling anytime.
j2sstrictstrict mode -- experimental
j2strace=xxx or j2strace="xxx"throw up an alert in the browser and a debugger statement in the developer whenever the specified text is found in System.out or System.err; if quotes are used, this must be an exact match to the entire output text (particularly useful when the message is something like "0", which otherwise would be next to impossible to find.
j2sverbosereport all files loaded using AJAX
+ + diff --git a/utils/jalviewjs/template.html b/utils/jalviewjs/template.html index 7c20d44..d132460 100644 --- a/utils/jalviewjs/template.html +++ b/utils/jalviewjs/template.html @@ -26,7 +26,7 @@ getClassList = function(){J2S._saveFile('_j2sclasslist.txt', Clazz.ClassFilesLoa
-This is System.out. clear it
Add ?j2snocore to URL to see full class list; ?j2sdebug to use uncompressed j2s/core files
get _j2sClassList.txt +This is System.out. clear it start/stop profiling
see ___j2sflags.htm for SwingJS URL command-line options
get _j2sClassList.txt
-- 1.7.10.2