Skip to content

Conversation

@BobHanson
Copy link
Collaborator

5.0.1 dual-mode transpiler uses .j2s (SwingJS, Java 8+) and .j2sjmol (legacy 4.2 unqualified methods version only for legacy Jmol)

BobHanson and others added 23 commits September 4, 2023 18:01
Merge pull request #223 from BobHanson/master
- still an issue. Must explicitly do requestFocus() on MousePressed
Menu issues with touch
Frame closing doesn't work with touch
JSHTMLHelper doesn't check for node having [0] element
PT approx() should leave 0 as 0, not -0
Conflicts:
	sources/net.sf.j2s.java.core/dist/SwingJS-site.zip
non-SwingJS "Legacy" Jmol was using the java2script 4.2 transpiler which
was only operable using Eclipse Juno (4.2, 2013).

This new branch integrates that into the SwingJS transpiler, allowing
both to be used (and fixed!!) in current Eclipse versions. The
difference is detected by using .j2sjmol for legacy and .j2s for
SwingJS.
Hooray! Working for Jmol. We can abandon the need to use Eclipse Luna to
run the old java2script 4.2 transpiler that was so quirky.

Now the transpiler for Jmol creates code directly in the site/ folder,
just like the SwingJS transpiler, and changes in "legacy" Jmol can be
checked in JavaScript directly using the ?j2sdebugcode
directive on the url line.
…ingJS

5.0.1 integrated legacy and swing js
@BobHanson BobHanson merged commit b96f2dc into java2script:master Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant