Jalview-JS/JAL-3253-applet JAL-3192 secondary core files
authorhansonr <hansonr@STO24954W.ad.stolaf.edu>
Sun, 19 May 2019 05:24:48 +0000 (00:24 -0500)
committerhansonr <hansonr@STO24954W.ad.stolaf.edu>
Sun, 19 May 2019 05:24:48 +0000 (00:24 -0500)
commit316a666545d6b6fcb16c534a08acfab7fd8b3404
tree86b3add5d51872e471eadd57291b9aea88f8d3f2
parentecdacdef2d269f781aef0f1ccd80d4ccd37bd379
Jalview-JS/JAL-3253-applet JAL-3192 secondary core files

buildcore now creates core_stevesoft (350K uncompressed) and core_jvjmol
(2.9M uncompressed)

Still needs some tweaking, but the process is relatively
straightforward:

1) To know what files to include, make sure you are using the core
version of the html file, and, after exercizing the program, issue:

J2S._saveFile('_j2sclasslist.txt',
Clazz.ClassFilesLoaded.sort().join('\n'))

(Sorry, I could make that simpler, I know.)

2) add a section in buildcore.xml that concatenates the desired file set
and turns that into a core file.

3) in the FIRST class loaded for this option, add something like this
static block:
  static
  {
    /**
     * This is the entry class. Load the core file directly, if it
exists. See
     * buildcore.xml.
     *
     *
     * @j2sNative
     *
     *            swingjs.JSUtil.loadStaticResource$S("core/core_stevesoft.z.js");
     */
  }

3) run buildcore.xml

2)
_j2sclasslist_Jmol.txt [new file with mode: 0644]
buildcore.xml
src/jalview/bin/JalviewAppLoader.java
src/jalview/gui/StructureViewer.java