cascade / static /j2s /core /package.js
bobbypaton
Initial CASCADE HF Space deployment
233f6d4
// BH 12/15/2012 1:56:28 PM adds corezip.z.js and corebio.z.js
// later additions include coresym.z.js, coresurface.z.js, coremenu.z.js
// NOTE: Any changes here must also be reflected in buildtojs.xml
if (!window["java.registered"])
window["java.registered"] = false;
(function (ClazzLoader) {
if (window["java.packaged"]) return;
window["java.packaged"] = true;
//if (!Jmol._isAsync) {
for (var i = 0; i < Jmol._coreFiles.length; i++)
ClazzLoader.loadZJar(Jmol._coreFiles[i], ClazzLoader.runtimeKeyClass);
//}
if (Jmol._debugCode)
return;
var base = ClazzLoader.getJ2SLibBase() + "core/";
// note - we don't need to list ALL the classes -- only the ones that are entry points.
// several more classe are in each of these files -- see build_03_tojs.xml
ClazzLoader.jarClasspath (base + "coretext.z.js", [
"JM.Text",
"J.shape.TextShape",
"$.Labels",
"$.Measures",
"$.Echo",
"$.Hover",
"J.render.TextRenderer",
"$.LabelsRenderer",
"$.MeasuresRenderer",
"$.EchoRenderer",
"$.HoverRenderer"
]);
ClazzLoader.jarClasspath (base + "corescript.z.js", [
"J.api.JmolScriptManager",
"$.JmolScriptEvaluator",
"$.JmolScriptFunction",
"JS.ScriptError",
"$.ScriptParam",
"$.ScriptExpr",
"$.ScriptEval",
"$.ScriptTokenParser",
"$.ScriptCompiler",
"$.CommandWatcherThread",
"$.ScriptQueueThread",
"$.ScriptDelayThread",
"$.ScriptManager",
"$.FileLoadThread",
"$.JmolCmdExtension",
"$.JmolMathExtension",
"$.JmolSmilesExtension"
]);
ClazzLoader.jarClasspath (base + "corescriptcmd.z.js", [
"JS.CmdExt"
]);
ClazzLoader.jarClasspath (base + "corescriptmath.z.js", [
"JS.MathExt"
]);
ClazzLoader.jarClasspath (base + "corestate.z.js", [
"J.api.JmolStateCreator",
"JU.StateCreator"
]);
ClazzLoader.jarClasspath (base + "coreprop.z.js", [
"J.api.JmolPropertyManager",
"JU.PropertyManager"
]);
ClazzLoader.jarClasspath (base + "coreconsole.z.js", [
"J.api.JmolAppConsoleInterface",
"J.console.GenericTextArea",
"$.GenericConsole",
"J.consolejs.AppletConsole"
]);
ClazzLoader.jarClasspath (base + "coremenu.z.js", [
"J.awtjs2d.JmolJSPopup",
"J.popup.MainPopupResourceBundle",
"$.JmolGenericPopup"
]);
ClazzLoader.jarClasspath (base + "corebinary.z.js", [
"java.io.DataInputStream",
"$.PushbackInputStream",
"JS.api.GenericBinaryDocument",
"JU.BC",
"$.BinaryDocument"
]);
ClazzLoader.jarClasspath (base + "corepymol.z.js", [
"J.api.JmolSceneGenerator",
"J.api.PymolAtomReader", // -- required by J.adapter.readers.pymol.PyMOLReader
"J.adapter.readers.pymol.PickleReader",
"$.PyMOL",
"$.JmolObject",
"$.PyMOLGroup",
"$.PyMOLScene",
"$.PyMOLReader"
]);
ClazzLoader.jarClasspath (base + "coremin.z.js", [
"JM.Minimizer",
"$.MinObject", // -- required by $.MinAngle
"$.MinAngle",
"$.MinAtom",
"$.MinBond",
"$.MinTorsion",
"$.Util",
"JM.FF.AtomType",
"$.Calculation", // -- required by $.CalculationsMMFF
"$.Calculations", // -- required by $.CalculationsMMFF
"$.CalculationsMMFF",
"$.CalculationsUFF",
"$.FFParam",
"$.ForceField", // -- required by $.forcefield.ForceFieldMMFF
"$.ForceFieldUFF",
"$.ForceFieldMMFF",
"J.thread.MinimizationThread"
]);
ClazzLoader.jarClasspath (base + "corezip.z.js", [
"javajs.api.GenericZipInputStream",
"J.io.JmolUtil",
"JU.ZipTools",
"$.ZInputStream"
]);
ClazzLoader.jarClasspath (base + "corebio.z.js", [
"J.adapter.readers.pdb.PdbReader",
"J.adapter.smarter.Structure",
"J.api.JmolBioResolver",
"JM.Resolver",
"$.BioModel"
]);
ClazzLoader.jarClasspath (base + "coresurface.z.js", [
"JS.IsoExt",
"J.jvxl.api.VertexDataServer",
"$.MeshDataServer",
"J.jvxl.calc.MarchingCubes",
"$.MarchingSquares",
"J.jvxl.data.JvxlCoder",
"$.VolumeData",
"$.JvxlData",
"$.MeshData",
"J.jvxl.readers.SurfaceGenerator",
"$.Parameters",
"$.SurfaceReader",
"$.VolumeDataReader",
"$.AtomDataReader",
"$.IsoSolventReader",
"$.SurfaceFileReader",
"$.VolumeFileReader",
"$.XmlReader",
"$.JvxlXmlReader",
"J.shapesurface.Isosurface",
"$.IsosurfaceMesh",
"J.rendersurface.IsosurfaceRenderer"
]);
ClazzLoader.jarClasspath (base + "coresym.z.js", [
"J.adapter.smarter.XtalSymmetry",
"J.api.SymmetryInterface",
"JS.Symmetry",
"$.PointGroup",
"$.SpaceGroup",
"$.HallInfo",
"$.HallRotationTerm",
"$.HallRotation",
"$.HallTranslation",
"$.SymmetryOperation",
"$.SymmetryInfo",
"$.UnitCell"
]);
ClazzLoader.jarClasspath (base + "coresmiles.z.js", [
"J.api.SmilesMatcherInterface",
"JS.SmilesExt",
"$.VTemp",
"$.SmilesMatcher",
"$.InvalidSmilesException",
"$.SmilesSearch",
"$.SmilesGenerator",
"$.SmilesAromatic",
"$.SmilesAtom",
"$.SmilesBond",
"$.SmilesMeasure",
"$.SmilesParser"
]);
ClazzLoader.jarClasspath (base + "corejsvmenu.z.js", [
"JSV.js2d.JsPopup",
"JSV.popup.JSVGenericPopup",
"JSV.popup.JSVPopupResourceBundle"
]);
ClazzLoader.jarClasspath (base + "corejsvexport.z.js", [
"JSV.export.Exporter",
"JSV.api.ExportInterface",
"$.JSVExporter"
]);
ClazzLoader.jarClasspath (base + "corejsvdialog.z.js", [
"JSV.api.PlatformDialog",
"JSV.js2d.JsDialogManager",
"$.DialogTableModel",
"$.JsDialog",
"JSV.dialog.DialogManager",
"$.IntegrationDialog",
"$.PeakListDialog",
"$.MeasurementsDialog",
"$.OverlayLegendDialog",
"$.ViewsDialog"
]);
ClazzLoader.jarClasspath (base + "coreswing.z.js", [
"javajs.api.SC",
"javajs.awt.BorderLayout",
"$.Component",
"$.Container",
"$.LayoutManager",
"javajs.awt.event.ActionEvent",
"javajs.awt.event.ItemEvent",
"javajs.swing.AbstractButton",
"$.AbstractTableModel",
"$.ButtonGroup",
"$.Cell",
"$.ColumnSelectionModel",
"$.Document",
"$.FlowLayout",
"$.Grid",
"$.GridBagConstraints",
"$.GridBagLayout",
"$.Insets",
"$.JButton",
"$.JCheckBox",
"$.JCheckBoxMenuItem",
"$.JComboBox",
"$.JComponent",
"$.JComponentImp",
"$.JContentPane",
"$.JDialog",
"$.JEditorPane",
"$.JLabel",
"$.JMenu",
"$.JMenuItem",
"$.JPanel",
"$.JPopupMenu",
"$.JRadioButtonMenuItem",
"$.JScrollPane",
"$.JSplitPane",
"$.JTable",
"$.JTextField",
"$.JTextPane",
"$.ListSelectionModel",
"$.SwingConstants",
"$.TableCellRenderer",
"$.TableColumn",
"J.popup.GenericSwingPopup",
"$.PopupHelper",
"$.JSSwingPopupHelper",
"$.PopupResource"
]);
}) (Clazz._Loader);
window["java.registered"] = true;