Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forking Tweaks -- Feb 3-5, 2023 summary #12

Closed
BobHanson opened this issue Feb 5, 2023 · 0 comments
Closed

Forking Tweaks -- Feb 3-5, 2023 summary #12

BobHanson opened this issue Feb 5, 2023 · 0 comments

Comments

@BobHanson
Copy link
Owner

OpenChemLib can now be accessed from any SwingJS Java or JavaScript application. GUI elements can work either embedded within a DIV on a page or as one or more pop-up frames.

There are almost certainly some bugs, as I only did a cursory test of file i/o. I did not test Executor action (which will not work as it stands in JavaScript, as it still uses Object.wait()/notify(). It would not be parallel in JavaScript anyway). Also, I did not adjust the ProgressBarUI to work in JavaScript as in Java, as that takes a bit more work. There are still some Thread.sleep() and Object.wait() calls. If needed, these could be easily enough replaced with javax.swing.Timer calls, I think.

Here is a full list of modified or added classes that make OpenChemLib compatible with SwingJS, allowing no differences in Java behavior, but automatic, simultaneous compilation into JavaScript by the java2script transpiler Eclipse CompilationParticipant plug-in.

These changes will be integrated into Jmol-SwingJS and JME-SwingJS.

New abstract classes

gui.editor.AsynchronousQueryBuilder
gui.SwingCanvas extends JPanel

OCL classes with tweaks

chem.Depictor2D
chem.io.CompoundFileHelper
gui.CompoundCollectionPane
gui.editor.AtomQueryFeatureDialogBuilder
gui.editor.BondQueryFeatureDialogBuilder
gui.editor.CustomAtomDialogBuilder
gui.editor.FXEditorDialog
gui.editor.GenericEditorArea
gui.editor.GenericEditorToolbar
gui.editor.TextDrawingObjectDialogBuilder
gui.FileHelper
gui.fx.FXDialog
gui.fx.FXUIHelper
gui.generic.GenericDialog
gui.generic.GenericUIHelper
gui.hidpi.HiDPIIconButton
gui.JAtomLabelDialog
gui.JChemistryView
gui.JDrawArea
gui.JEditableChemistryView
gui.JEditableStructureView
gui.JStructureView
gui.ScrollPaneAutoScrollerWhenDragging
gui.swing.SwingDialog
gui.swing.SwingUIHelper

Added classes from the SwingJS interface

javajs.async.Assets
javajs.async.Async
javajs.async.AsyncColorChooser
javajs.async.AsyncDialog
javajs.async.AsyncFileChooser
javajs.async.AsyncSwingWorker
javajs.async.SwingJSUtils
swingjs.api.JSUtilI

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

No branches or pull requests

1 participant