jalview.git
3 years agoJAL-3789 Use j2s.config.altfileproperty in .j2s for alternative temporary build/jalvi... Jalview-JS/develop
Ben Soares [Mon, 11 Jan 2021 21:30:56 +0000 (21:30 +0000)]
JAL-3789 Use j2s.config.altfileproperty in .j2s for alternative temporary build/jalviewjs/config/j2s settings file when running a headless build in gradle

3 years agoJAL-3789 New swingjs for Java2Script 3.2.10 with j2s.config.altfileproperty
Ben Soares [Mon, 11 Jan 2021 21:28:56 +0000 (21:28 +0000)]
JAL-3789 New swingjs for Java2Script 3.2.10 with j2s.config.altfileproperty

3 years agoMerge branch 'Jalview-JS/develop_j2s_v3_2_9_j11' into Jalview-JS/develop
Jim Procter [Mon, 14 Dec 2020 16:27:15 +0000 (16:27 +0000)]
Merge branch 'Jalview-JS/develop_j2s_v3_2_9_j11' into Jalview-JS/develop

3 years agoJAL-3223 - update swingjs to 3.2.9-j11 Jalview-JS/develop_j2s_v3_2_9_j11
Jim Procter [Thu, 10 Dec 2020 17:50:05 +0000 (17:50 +0000)]
JAL-3223 - update swingjs to 3.2.9-j11

3 years agoJAL-3577 Removed default JALVIEW_VERSION from gradle.properties. Now being set by...
Ben Soares [Fri, 25 Sep 2020 08:39:02 +0000 (09:39 +0100)]
JAL-3577 Removed default JALVIEW_VERSION from gradle.properties. Now being set by build.gradle

3 years agoJAL-3577 Quick fix adding quotation marks for findProperty("JALVIEW_VERSION")==null...
Ben Soares [Thu, 24 Sep 2020 17:16:17 +0000 (18:16 +0100)]
JAL-3577 Quick fix adding quotation marks for findProperty("JALVIEW_VERSION")==null...

3 years agoJAL-3679 Added externally specified plugins dir to J2sPlugin check
Ben Soares [Fri, 4 Sep 2020 17:29:41 +0000 (18:29 +0100)]
JAL-3679 Added externally specified plugins dir to J2sPlugin check

3 years agoJAL-3446 unused imports removed
gmungoc [Tue, 30 Jun 2020 11:12:09 +0000 (12:12 +0100)]
JAL-3446 unused imports removed

3 years agoJAL-3648 resize annotation panel after dragging to resize graph height
gmungoc [Thu, 18 Jun 2020 14:43:51 +0000 (15:43 +0100)]
JAL-3648 resize annotation panel after dragging to resize graph height

3 years agoJAL-3493 fix patch for 2.11.1_js (nb - these changes should not be merged to 2.11.2!)
Jim Procter [Mon, 29 Jun 2020 17:39:41 +0000 (18:39 +0100)]
JAL-3493 fix patch for 2.11.1_js (nb - these changes should not be merged to 2.11.2!)

3 years agoJAL-3675 2.11.1.1 release notes
Jim Procter [Mon, 29 Jun 2020 16:46:57 +0000 (17:46 +0100)]
JAL-3675 2.11.1.1 release notes

3 years agoJAL-3493 clear search highlights when escape/deselect all
Jim Procter [Mon, 29 Jun 2020 16:24:29 +0000 (17:24 +0100)]
JAL-3493 clear search highlights when escape/deselect all
 Conflicts:
src/jalview/gui/AlignFrame.java
patch migrated to src/jalview/gui/AligmentPanel.java

3 years agoJAL-3493 failing test - creates a highlight and column selection and then called...
Jim Procter [Mon, 29 Jun 2020 16:19:19 +0000 (17:19 +0100)]
JAL-3493 failing test - creates a highlight and column selection and then called the deselect all alignfjame action and checks if highlight and selection are still present.
 Conflicts:
test/jalview/gui/SeqCanvasTest.java

3 years agoJAL-3659 unnecessary duplication -- test is made in previous block
BobHanson [Thu, 18 Jun 2020 16:00:32 +0000 (11:00 -0500)]
JAL-3659 unnecessary duplication -- test is made in previous block

3 years agoJAL-3446 unintentially left training message in code.
BobHanson [Thu, 18 Jun 2020 15:57:28 +0000 (10:57 -0500)]
JAL-3446 unintentially left training message in code.

3 years agoJAL-3662 JAL-3660 JAL-3561 source formatting
Jim Procter [Wed, 17 Jun 2020 12:49:24 +0000 (13:49 +0100)]
JAL-3662 JAL-3660 JAL-3561 source formatting

3 years agoMerge branch 'cherrypicks/JAL-3660_JAL-3561_JAL-3662_cli_outputformat' into Jalview...
Jim Procter [Wed, 17 Jun 2020 12:24:09 +0000 (13:24 +0100)]
Merge branch 'cherrypicks/JAL-3660_JAL-3561_JAL-3662_cli_outputformat' into Jalview-JS/develop

3 years agoJAL-3660 JAL-3561 output alignment as requested file format as validated by FileForma... cherrypicks/JAL-3660_JAL-3561_JAL-3662_cli_outputformat
Jim Procter [Tue, 16 Jun 2020 16:12:54 +0000 (17:12 +0100)]
JAL-3660 JAL-3561 output alignment as requested file format as validated by FileFormats - report if format cannot be resolved or FileFormatI does not support export.
Merged jbp patch for 2.11.1.0 to rhanson's Jalview-JS/develop reworking of args parsing

3 years agoJAL-3561 JAL-3660 check resolved FileFormatI instances are equivalent to verify forma...
Jim Procter [Tue, 16 Jun 2020 16:11:32 +0000 (17:11 +0100)]
JAL-3561 JAL-3660 check resolved FileFormatI instances are equivalent to verify format is as expected in test

3 years agoJAL-3561 failing test verifying expected fileformat produced during commandlineoperat...
Jim Procter [Fri, 20 Mar 2020 13:12:39 +0000 (13:12 +0000)]
JAL-3561 failing test verifying expected fileformat produced during commandlineoperation tests

3 years agoJAL-3659 proper headless check; skips setProperty for JS
BobHanson [Tue, 16 Jun 2020 23:09:57 +0000 (18:09 -0500)]
JAL-3659 proper headless check; skips setProperty for JS

3 years agoJAL-3662 simple fix for CLI not using right format for output of
BobHanson [Tue, 16 Jun 2020 23:00:51 +0000 (18:00 -0500)]
JAL-3662 simple fix for CLI not using right format for output of
alignment.

3 years agoMerge branch 'Jalview-JS/develop' of https://source.jalview.org/git/jalview.git into...
BobHanson [Tue, 16 Jun 2020 12:51:05 +0000 (07:51 -0500)]
Merge branch 'Jalview-JS/develop' of https://source.jalview.org/git/jalview.git into Jalview-JS/develop

3 years agoJAL-3446 -- YEIKS! two checkURLLinks calls!
BobHanson [Tue, 16 Jun 2020 12:44:20 +0000 (07:44 -0500)]
JAL-3446 -- YEIKS! two checkURLLinks calls!

3 years agoMerge branch 'Jalview-JS/develop' of https://source.jalview.org/git/jalview.git into...
gmungoc [Tue, 16 Jun 2020 12:00:49 +0000 (13:00 +0100)]
Merge branch 'Jalview-JS/develop' of https://source.jalview.org/git/jalview.git into Jalview-JS/develop

3 years agoJAL-3583 better handling of null or empty tooltip on annotation
gmungoc [Tue, 16 Jun 2020 12:00:29 +0000 (13:00 +0100)]
JAL-3583 better handling of null or empty tooltip on annotation

3 years agoJAL-3446 defer size calculations until panel added to window
gmungoc [Tue, 16 Jun 2020 11:47:12 +0000 (12:47 +0100)]
JAL-3446 defer size calculations until panel added to window

3 years agoJAL-3446 proper call for headless state
BobHanson [Tue, 16 Jun 2020 11:23:01 +0000 (06:23 -0500)]
JAL-3446 proper call for headless state

3 years agoJAL-3446 CommandLineOperation test
BobHanson [Tue, 16 Jun 2020 04:23:26 +0000 (23:23 -0500)]
JAL-3446 CommandLineOperation test

 - cleaner headless check when adding JInternalFrame to Desktop
instance.

3 years agoJAL-3446 CommandLineOperation test
BobHanson [Tue, 16 Jun 2020 03:07:02 +0000 (22:07 -0500)]
JAL-3446 CommandLineOperation test

 - headless check must be before Desktop.getInstance(), as you can't
make an instance of JFrame() when headless.

3 years agoJAL-3446 CTRL-DOWN check for headless operation
BobHanson [Tue, 16 Jun 2020 03:05:44 +0000 (22:05 -0500)]
JAL-3446 CTRL-DOWN check for headless operation

3 years agoMerge branch 'Jalview-JS/develop' of https://source.jalview.org/git/jalview.git into...
BobHanson [Mon, 15 Jun 2020 17:55:05 +0000 (12:55 -0500)]
Merge branch 'Jalview-JS/develop' of https://source.jalview.org/git/jalview.git into Jalview-JS/develop

3 years agoJAL-3657 SwingJS HashMap.putEntries() coding mistake.
BobHanson [Mon, 15 Jun 2020 17:54:52 +0000 (12:54 -0500)]
JAL-3657 SwingJS HashMap.putEntries() coding mistake.

3 years agoJAL-3658 Now only making cores from utils/jalviewjs/classlists/*.txt
soares [Mon, 15 Jun 2020 14:21:01 +0000 (15:21 +0100)]
JAL-3658 Now only making cores from utils/jalviewjs/classlists/*.txt

3 years agoJAL-3446 breaking change redacted
gmungoc [Mon, 15 Jun 2020 09:20:15 +0000 (10:20 +0100)]
JAL-3446 breaking change redacted

3 years agoMerge branch 'Jalview-JS/develop' of https://source.jalview.org/git/jalview.git into...
gmungoc [Mon, 15 Jun 2020 07:24:41 +0000 (08:24 +0100)]
Merge branch 'Jalview-JS/develop' of https://source.jalview.org/git/jalview.git into Jalview-JS/develop

3 years agoJAL-3445 BSML BBB file format.
BobHanson [Sun, 14 Jun 2020 03:10:54 +0000 (22:10 -0500)]
JAL-3445 BSML BBB file format.

- merge of BSML test branch.
- includes BSMLFileTest
- preliminary; does not read complement
- See Jalview-JS/develop/temp/bbb.dtd.pdf

3 years agoJAL-3653 SwingJS support for indeterminate JProgressBar
BobHanson [Sun, 14 Jun 2020 02:42:30 +0000 (21:42 -0500)]
JAL-3653 SwingJS support for indeterminate JProgressBar

3 years agoJAL-3487 Splash screen
BobHanson [Sat, 13 Jun 2020 21:37:52 +0000 (16:37 -0500)]
JAL-3487 Splash screen

- cleaner code, more comments
- adds SwingJS support for 1-ms image finalization
  (using JSToolkit.dispatch instead of invokeLater

3 years agoJAL-3487 Splash screen
BobHanson [Sat, 13 Jun 2020 17:30:28 +0000 (12:30 -0500)]
JAL-3487 Splash screen

- JS now uses StateMachine

- simple example of how StateMachine works.

3 years agoMerge branch 'Jalview-JS/develop.JAL-3445-BSML-reader' into Jalview-JS/develop
BobHanson [Sat, 13 Jun 2020 14:41:14 +0000 (09:41 -0500)]
Merge branch 'Jalview-JS/develop.JAL-3445-BSML-reader' into Jalview-JS/develop

3 years agoJAL-3446 SwingJS update
BobHanson [Fri, 12 Jun 2020 14:02:20 +0000 (09:02 -0500)]
JAL-3446 SwingJS update

-fixes desktop frame not taking focus when clicked, so not processing
menu shortcuts

3 years agoJAL-3664 shortcuts in Desktop not working from AlignFrame
BobHanson [Fri, 12 Jun 2020 13:32:44 +0000 (08:32 -0500)]
JAL-3664 shortcuts in Desktop not working from AlignFrame

- missing test for JInternalFrame in JComponent.processKeyBindings

3 years agoJAL-3446 fixing a bad merge, sorry
soares [Fri, 12 Jun 2020 11:24:55 +0000 (12:24 +0100)]
JAL-3446 fixing a bad merge, sorry

3 years agoJAL-3446 separated out potential exceptions for simplified key mask operation
soares [Fri, 12 Jun 2020 11:15:32 +0000 (12:15 +0100)]
JAL-3446 separated out potential exceptions for simplified key mask operation

3 years agoJAL-3446 removing mouse button test debug
BobHanson [Fri, 12 Jun 2020 08:45:06 +0000 (03:45 -0500)]
JAL-3446 removing mouse button test debug

3 years agoSwingJS upgrade fixes AlignmentPanel keyPressed not called
BobHanson [Fri, 12 Jun 2020 06:12:29 +0000 (01:12 -0500)]
SwingJS upgrade fixes AlignmentPanel keyPressed not called

- ContentPane was getting the message, not JInternalFrame

3 years agoJAL-3446 from applet -- reload; also fixes some repaint issues
BobHanson [Fri, 12 Jun 2020 05:31:52 +0000 (00:31 -0500)]
JAL-3446 from applet -- reload; also fixes some repaint issues

3 years agoJAL-3624 code tidy
gmungoc [Thu, 11 Jun 2020 15:11:48 +0000 (16:11 +0100)]
JAL-3624 code tidy

3 years agoJAL-3624 unneeded import removed
gmungoc [Thu, 11 Jun 2020 15:04:48 +0000 (16:04 +0100)]
JAL-3624 unneeded import removed

3 years agoJAL-3446 misplaced } removed drop and window listeners from JS
BobHanson [Thu, 11 Jun 2020 13:37:11 +0000 (08:37 -0500)]
JAL-3446 misplaced } removed drop and window listeners from JS

3 years agoJAL-3446 no need for SHIFT_DOWN or ALT_DOWN masks
BobHanson [Thu, 11 Jun 2020 13:34:37 +0000 (08:34 -0500)]
JAL-3446 no need for SHIFT_DOWN or ALT_DOWN masks

3 years agoFirst try at merging didn't go so well.
BobHanson [Thu, 11 Jun 2020 12:19:17 +0000 (07:19 -0500)]
First try at merging didn't go so well.

3 years agoMerge branch 'Jalview-JS/develop.JAL-3446.ctrlDown' into
BobHanson [Thu, 11 Jun 2020 12:13:36 +0000 (07:13 -0500)]
Merge branch 'Jalview-JS/develop.JAL-3446.ctrlDown' into
Jalview-JS/develop

Conflicts:
src/jalview/bin/JalviewJS2.java
src/jalview/gui/Desktop.java
src/jalview/util/Platform.java

3 years agoJAL-3446, JAL-3647 after first successful test run;
BobHanson [Thu, 11 Jun 2020 00:40:52 +0000 (19:40 -0500)]
JAL-3446, JAL-3647 after first successful test run;
removing debug messages

3 years agoBamboo #36 checking component sizes
BobHanson [Wed, 10 Jun 2020 22:49:51 +0000 (17:49 -0500)]
Bamboo #36 checking component sizes

3 years agoBamboo text #35 - simpler logic; avoids impossible repaint, validation?
BobHanson [Wed, 10 Jun 2020 21:03:42 +0000 (16:03 -0500)]
Bamboo text #35 - simpler logic; avoids impossible repaint, validation?

3 years agoBamboo test #3 The problem is not threading. It is feedback from
BobHanson [Wed, 10 Jun 2020 18:18:43 +0000 (13:18 -0500)]
Bamboo test #3 The problem is not threading. It is feedback from
ViewportRanges to AlignmentPanel from trying to set the ranges to
invalid values.

3 years agoBamboo test - setting method priorities
BobHanson [Wed, 10 Jun 2020 17:48:37 +0000 (12:48 -0500)]
Bamboo test - setting method priorities

3 years agoBamboo test 2 -- threads and stacktrace
BobHanson [Wed, 10 Jun 2020 17:24:58 +0000 (12:24 -0500)]
Bamboo test 2 -- threads and stacktrace

3 years agoSo close! Bamboo test
BobHanson [Wed, 10 Jun 2020 17:05:25 +0000 (12:05 -0500)]
So close! Bamboo test

3 years agoJAL-3446 JAL-3645 tooltip testing not intended to be checked in.
BobHanson [Wed, 10 Jun 2020 16:31:05 +0000 (11:31 -0500)]
JAL-3446 JAL-3645 tooltip testing not intended to be checked in.

3 years agoJAL-3645 errant "g" in JavaDoc
BobHanson [Wed, 10 Jun 2020 16:28:56 +0000 (11:28 -0500)]
JAL-3645 errant "g" in JavaDoc

3 years agoJAL-3446 from applet, JAL-3584 tooltip fixes <br> and allows different
BobHanson [Wed, 10 Jun 2020 15:52:59 +0000 (10:52 -0500)]
JAL-3446 from applet, JAL-3584 tooltip fixes <br> and allows different
html style coding for Java and JavaScript

3 years agoJAL-3446 SwingJS upgrade for html labels and tooltips preferred size fix
BobHanson [Wed, 10 Jun 2020 15:48:17 +0000 (10:48 -0500)]
JAL-3446 SwingJS upgrade for html labels and tooltips preferred size fix

- adds display:inline-block to label spans
- better testing for isHTML in labels

3 years agoJAL-3446 more tweaks to tests failing on build server
gmungoc [Wed, 10 Jun 2020 09:14:13 +0000 (10:14 +0100)]
JAL-3446 more tweaks to tests failing on build server

3 years agoMerge branch 'Jalview-JS/develop' of https://source.jalview.org/git/jalview.git into...
gmungoc [Wed, 10 Jun 2020 08:59:39 +0000 (09:59 +0100)]
Merge branch 'Jalview-JS/develop' of https://source.jalview.org/git/jalview.git into Jalview-JS/develop

3 years agoJAL-3446 tests - Popup/HTML changes in Applet
BobHanson [Wed, 10 Jun 2020 05:22:18 +0000 (00:22 -0500)]
JAL-3446 tests - Popup/HTML changes in Applet

- <br> indicates no additional line breaks.
- removal of unrealistic tests ("false" tests of jws2Discoverer HTML
messages)
- accepts either <br> or <br/> (as does JLabel)

3 years agoJAL-3446 AlignViewportTest
BobHanson [Wed, 10 Jun 2020 05:03:22 +0000 (00:03 -0500)]
JAL-3446 AlignViewportTest

- optionally stops jabaws checking interference; Allows a bit more time,
for calculation to start, I think.
- passing 8 times in a row

3 years agoJAL-3446 Dynamic menu - Moves calc sortby tree item creation to opening
BobHanson [Wed, 10 Jun 2020 03:07:59 +0000 (22:07 -0500)]
JAL-3446 Dynamic menu - Moves calc sortby tree item creation to opening
of its submenu, rather than the upper-level sort menu.

- suggestion only; changes setVisible to setEnabled, more along the
lines of standard practice (?)
- allows for a simple change from "enabled" to "visible" if desired, but
still leaves the submenu creation in its most proximate location.

3 years agoJAL-3446 SwingJS-site.zip for dynamic menus
BobHanson [Wed, 10 Jun 2020 03:01:04 +0000 (22:01 -0500)]
JAL-3446 SwingJS-site.zip for dynamic menus

- adds missing mouse-event bindings to all
  dynamically created menu items
  immediately after return from menuSelected event
- fixes issue of menus too eager to close

3 years agoJAL-3446 problem with Select-Find tooltip
BobHanson [Tue, 9 Jun 2020 21:32:02 +0000 (16:32 -0500)]
JAL-3446 problem with Select-Find tooltip

- Just too complex to allow wrapping AND <br> tags.

- Compromise is to not worry about "maximum length" if "<br>" is used.

- Assumption is that if you took the time to put in a <br> you expect
that to be where (and only where) the line breaks are and also to define
the width of the tooltip

- adds a thin border around the tooltip text.

3 years agoJAL-3446 proposed dropdown fix
BobHanson [Tue, 9 Jun 2020 21:29:00 +0000 (16:29 -0500)]
JAL-3446 proposed dropdown fix

- 100 ms delay for opening
- proper toggle operation for button
- all actions on mouseup
- tooltips open and close appropriately

3 years agoJAL-3446 tearDown to fix unit test fail
gmungoc [Tue, 9 Jun 2020 15:08:28 +0000 (16:08 +0100)]
JAL-3446 tearDown to fix unit test fail

3 years agoMerge branch 'Jalview-JS/develop' of https://source.jalview.org/git/jalview.git into...
BobHanson [Tue, 9 Jun 2020 06:55:57 +0000 (01:55 -0500)]
Merge branch 'Jalview-JS/develop' of https://source.jalview.org/git/jalview.git into Jalview-JS/develop

3 years agoJAL-3446 from applet; JAL-3374
BobHanson [Tue, 9 Jun 2020 06:42:17 +0000 (01:42 -0500)]
JAL-3446 from applet; JAL-3374

- JalviewJSApp interface updated
- Jalview "noannotations" fixed
- AlignFrame show annotations menu item when started with noannations
fixed
- reorganization of timing of setting range start/end and scrollbar
values solves (many) timing issues in SeqCanvasTest and
AlignmentPanelTest, which were due to asynchronous delayed repaints
setting range values in paintComponent(g) way too late.
- correction of font checking in AlignmentPanelTest - "VERY LONG LABEL"
not long enough after adding "MMMM" in a prior test
- corrections for "isMac()" (now "!isWin()") in tests
- addition of Jalview.isInteractive for SeqCanvasTest -- still an
occasional conflict with previous test when in batch mode
- addition of Jalview.allowServices for simple tests (using -jabaws
"none"), allowing them to not run unnecessary service look-up threads
- centralization of AlignmentViewport firing of "alignment" property
change for sanity only
- adding of "sequence" property change for notification of need to
refresh the horizontal scrollbar after changes in range and scrollbar
update timing

- still a minor issue with noannotation starting up ok, but the first
annotation spilling over into scrollbar space (is that a filler?)

3 years agoJAL-3446 from applet - Cache news date fix
BobHanson [Tue, 9 Jun 2020 06:25:37 +0000 (01:25 -0500)]
JAL-3446 from applet - Cache news date fix

- US time stored differently, I guess.

3 years agoJAL-3446 from JAL-3253-applet SequenceFetcher.getInstance()
BobHanson [Tue, 9 Jun 2020 06:24:40 +0000 (01:24 -0500)]
JAL-3446 from JAL-3253-applet  SequenceFetcher.getInstance()

3 years agoJAL-3446 from JAL-3253-applet Tree Canvas bug fix
BobHanson [Tue, 9 Jun 2020 06:20:53 +0000 (01:20 -0500)]
JAL-3446 from JAL-3253-applet Tree Canvas bug fix

- was possible to right-click off the node to get a NullPointer
exception.

3 years agoJAL-3446 old j8lib Jmol-14.29.17.jar removed. SHOULD NOT BE CHERRY-PICKED TO develop...
soares [Mon, 8 Jun 2020 13:39:17 +0000 (14:39 +0100)]
JAL-3446 old j8lib Jmol-14.29.17.jar removed. SHOULD NOT BE CHERRY-PICKED TO develop or release UNTIL JAL-3595 RESOLVED

3 years agoJAL-3446 new Jmol 15.1.3 jar added to j11lib, old j11lib Jmol-14.29.17-no_netscape...
soares [Mon, 8 Jun 2020 13:36:41 +0000 (14:36 +0100)]
JAL-3446 new Jmol 15.1.3 jar added to j11lib, old j11lib Jmol-14.29.17-no_netscape.jar removed

3 years agoJAL-3446 minor SwingJS-site.zip fixes; Assets.
BobHanson [Mon, 8 Jun 2020 04:24:29 +0000 (23:24 -0500)]
JAL-3446 minor SwingJS-site.zip fixes; Assets.

3 years agoJAL-3446 AppletParams
BobHanson [Sun, 7 Jun 2020 23:39:37 +0000 (18:39 -0500)]
JAL-3446 AppletParams

3 years agoJAL-3446 rearranged parameters for JalviewJS API methods
BobHanson [Sun, 7 Jun 2020 18:27:42 +0000 (13:27 -0500)]
JAL-3446 rearranged parameters for JalviewJS API methods

3 years agoMerge branch 'Jalview-JS/develop' of https://source.jalview.org/git/jalview.git into...
BobHanson [Sun, 7 Jun 2020 18:09:26 +0000 (13:09 -0500)]
Merge branch 'Jalview-JS/develop' of https://source.jalview.org/git/jalview.git into Jalview-JS/develop

3 years agoJAL-3446 reorganized JalviewJSApp (accidentally put that in jalview/api)
BobHanson [Sun, 7 Jun 2020 18:00:11 +0000 (13:00 -0500)]
JAL-3446 reorganized JalviewJSApp (accidentally put that in jalview/api)
and
fixes for 2-applet example

- API.md
- follows commit 01717e2 (missing JAL-3446 tag)

3 years agoreorganized JalviewJSApp (accidentally put that in jalview/api) and
BobHanson [Sun, 7 Jun 2020 18:00:11 +0000 (13:00 -0500)]
reorganized JalviewJSApp (accidentally put that in jalview/api) and
fixes for 2-applet example

3 years agoJAL-3446 differences.txt now delivered with SwingJS-site.zip
BobHanson [Sun, 7 Jun 2020 04:06:11 +0000 (23:06 -0500)]
JAL-3446 differences.txt now delivered with SwingJS-site.zip

3 years agoJAL-3446 JavaScript interface
BobHanson [Sun, 7 Jun 2020 04:05:16 +0000 (23:05 -0500)]
JAL-3446  JavaScript interface

- testing with two apps on a page
- now requires Jalview1.getApp().xxxx, not just Jalview1.app, because a
call is needed to ensure that ThreadGroup is set correctly.

- still working on this...

3 years agoJAL-3446 Desktop fix for embedding
BobHanson [Sun, 7 Jun 2020 04:00:36 +0000 (23:00 -0500)]
JAL-3446 Desktop fix for embedding

3 years agoJAL-3446 no actual changes; just using meaningful frame options
BobHanson [Sat, 6 Jun 2020 22:37:22 +0000 (17:37 -0500)]
JAL-3446 no actual changes; just using meaningful frame options

3 years agoJAL-3446 adds Jmol viewer embedding.
BobHanson [Sat, 6 Jun 2020 17:36:34 +0000 (12:36 -0500)]
JAL-3446 adds Jmol viewer embedding.

3 years agoJAL-3446 adds Jmol viewer embedding.
BobHanson [Sat, 6 Jun 2020 17:23:19 +0000 (12:23 -0500)]
JAL-3446 adds Jmol viewer embedding.

3 years agoJmol 15.1.3 rebuilt
BobHanson [Sat, 6 Jun 2020 13:24:32 +0000 (08:24 -0500)]
Jmol 15.1.3 rebuilt

3 years agoJAL-3379 JalviewJS-API specs - preliminary
BobHanson [Sat, 6 Jun 2020 13:13:33 +0000 (08:13 -0500)]
JAL-3379 JalviewJS-API specs - preliminary

3 years agoJAL-3446 embedded file for proper name matching
BobHanson [Fri, 5 Jun 2020 22:09:46 +0000 (17:09 -0500)]
JAL-3446 embedded file for proper name matching

web app name "Jalview"

div id="Jalview-desktop-div"

So whatever name you give the applet must match the div tags.
Previously, the div name was associated with a different name,
Info.j2sAppID, or something like that. This is much more sensible.

Just don't name it "jalview", because that is a package name!

3 years agoJAL-3446 UrlDownloadClient and Test
BobHanson [Fri, 5 Jun 2020 21:46:09 +0000 (16:46 -0500)]
JAL-3446 UrlDownloadClient and Test

 - moving download to Platform
 - trivializing JavaScript method
 - expanding SwingJS to allow for nio methods

Note: SwingJS preserves byte[] in the File, Path, or FileOutputStream
objects as well as in J2S._javaFileCache. Because of that, one thing you
have to look out for is stale references. In this case, we have:

temp = new Path(...);
fos = new FileOutputStream(temp.toString);

now two independent pointers both refer to the tmp file.

rbc = new
   ReadableByteChannel(url.openStream());
fos.getChannel().transferFrom(rbc);

Now the bytes are in fos's channel, but they are not associated yet with
"tmp".

Files.copy(tmp, outfile);

This wasn't working in JavaScript, because Path tmp was out of date, and
so no bytes were being copied.

Working now, but still far to complicated for the simple operation of
transferring bytes from an InputStream to a File in JavaScript.

3 years agoJAL-3446 Desktop JS needs getIdentifiersOrgData();
BobHanson [Fri, 5 Jun 2020 16:33:19 +0000 (11:33 -0500)]
JAL-3446 Desktop JS needs       getIdentifiersOrgData();

3 years agoJAL-3446 forgot to escape Java in modified Platform.getAppID
BobHanson [Fri, 5 Jun 2020 15:35:23 +0000 (10:35 -0500)]
JAL-3446 forgot to escape Java in modified Platform.getAppID

3 years agoJAL-3446 new Locale("") moved to Platform for review.
BobHanson [Fri, 5 Jun 2020 15:22:33 +0000 (10:22 -0500)]
JAL-3446 new Locale("") moved to Platform for review.