Skip to content

Commit

Permalink
release v2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rbouckaert committed Mar 19, 2023
1 parent 761de0d commit 3f01d8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions src/sa/beauti/SAMRCAPriorInputEditor.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package sa.beauti;


import java.lang.reflect.InvocationTargetException;
import java.util.List;

Expand All @@ -11,7 +12,6 @@
import beastfx.app.inputeditor.BooleanInputEditor;
import beastfx.app.inputeditor.InputEditor;
import beastfx.app.inputeditor.MRCAPriorInputEditor;
import beastfx.app.util.FXUtils;
import javafx.scene.Node;
import javafx.scene.control.CheckBox;
import javafx.scene.layout.HBox;
Expand All @@ -32,10 +32,9 @@ public SAMRCAPriorInputEditor() {
public Class<?> type() {
return SAMRCAPrior.class;
}

//InputEditor tipsonlyEditor;

public InputEditor createTipsonlyEditor() throws NoSuchMethodException, SecurityException, ClassNotFoundException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
doc.beautiConfig.suppressBEASTObjects.add(SampledNodeDateRandomWalker.class.getName() + ".taxonset");
BooleanInputEditor e = new BooleanInputEditor (doc) {

@Override
Expand All @@ -48,6 +47,8 @@ public void init(Input<?> input, BEASTInterface beastObject, int itemNr, ExpandO
if (o instanceof CheckBox) {
((CheckBox)o).setOnAction(e -> {
CheckBox src = (CheckBox) e.getSource();
SAMRCAPrior prior = (SAMRCAPrior) m_beastObject;
prior.onlyUseTipsInput.setValue(src.isSelected(), prior);
if (src.isSelected()) {
enableTipSampling();
} else {
Expand All @@ -70,23 +71,19 @@ public void init(Input<?> input, BEASTInterface beastObject, int itemNr, ExpandO
public class NoEditor extends InputEditor.Base {
@Override
public Class<?> type() {
// TODO Auto-generated method stub
return null;
}
}

public InputEditor createTreeEditor() {
System.err.println(">>>>>> createTreeEditor");
return new NoEditor();
}

public InputEditor createMonophyleticEditor() {
System.err.println(">>>>>> createMonophyleticEditor");
return new NoEditor();
}

public InputEditor createTaxonsetEditor() {
System.err.println(">>>>>> createTaxonsetEditor");
return new NoEditor();
}

Expand Down
2 changes: 1 addition & 1 deletion version.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<package name='SA' version='2.1.0'>
<package name='SA' version='2.1.1'>
<depends on='BEAST.base' atleast='2.7.0'/>
<depends on='BEAST.app' atleast='2.7.0'/>
<depends on='BEASTLabs' atleast='2.0.0'/>
Expand Down

0 comments on commit 3f01d8f

Please sign in to comment.