Skip to content

Commit 4d461b4

Browse files
authored
Merge pull request #124 from CompEvol/fix/beauti-legacy-sitemodel-editor
Stop registering the legacy SiteModelInputEditor as a BEAUti editor
2 parents 8570c76 + 54ed412 commit 4d461b4

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

beast-fx/src/main/java/module-info.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,12 @@
7676
beastfx.app.inputeditor.OutFileListInputEditor,
7777
beastfx.app.inputeditor.ParameterInputEditor,
7878
beastfx.app.inputeditor.ParametricDistributionInputEditor,
79-
beastfx.app.inputeditor.SiteModelInputEditor,
79+
// The legacy SiteModelInputEditor is intentionally NOT provided: the spec
80+
// SiteModelInputEditor (below) is the BEAUti editor for SiteModelInterface.Base in
81+
// 2.8. Both declared the same type(), so registering both let ServiceLoader order
82+
// decide the winner, and the legacy one could win and emit legacy operators (e.g.
83+
// BactrianDeltaExchangeOperator instead of the spec DeltaExchangeOperator). The
84+
// class remains for LegacyStandard.xml's connect-method references.
8085
beastfx.app.inputeditor.StringInputEditor,
8186
beastfx.app.inputeditor.TreeFileInputEditor,
8287
beastfx.app.inputeditor.TreeFileListInputEditor,

beast-fx/version.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@
5757
<provider classname="beastfx.app.inputeditor.OutFileListInputEditor"/>
5858
<provider classname="beastfx.app.inputeditor.ParameterInputEditor"/>
5959
<provider classname="beastfx.app.inputeditor.ParametricDistributionInputEditor"/>
60-
<provider classname="beastfx.app.inputeditor.SiteModelInputEditor"/>
60+
<!-- Legacy SiteModelInputEditor intentionally not registered: the spec
61+
SiteModelInputEditor is the BEAUti editor for SiteModelInterface.Base
62+
in 2.8. Registering both let service order pick the winner, and the
63+
legacy one could emit legacy operators. -->
6164
<provider classname="beastfx.app.inputeditor.StringInputEditor"/>
6265
<provider classname="beastfx.app.inputeditor.TreeFileInputEditor"/>
6366
<provider classname="beastfx.app.inputeditor.TreeFileListInputEditor"/>

0 commit comments

Comments
 (0)