Skip to content

Commit

Permalink
update version nr CompEvol/beast2#1095 and clean up code #6
Browse files Browse the repository at this point in the history
  • Loading branch information
rbouckaert committed Mar 20, 2023
1 parent 9ae1a0e commit a215adc
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 6 deletions.
1 change: 1 addition & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
<!-- Compile the java code from ${srcFX} into ${buildFX} /bin -->
<javac srcdir="${srcFX}" destdir="${buildFX}" classpathref="classpath"
fork="true"
encoding="UTF-8"
memoryinitialsize="256m"
memorymaximumsize="1024m"
>
Expand Down
6 changes: 5 additions & 1 deletion fxtemplates/Standard.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@
inputLabelMap='beast.base.inference.MCMC.operator=Operators,
beast.base.inference.MCMC.logger=Loggers,
beast.base.evolution.sitemodel.SiteModel.mutationRate =Substitution Rate,
beast.base.evolution.speciation.YuleModel.birthDiffRate=Birth Rate'
beast.base.evolution.speciation.YuleModel.birthDiffRate=Birth Rate,
beast.base.evolution.branchratemodel.UCRelaxedClockModel.clock.rate=Mean clock rate,
beast.base.evolution.branchratemodel.StrictClockModel.clock.rate=Mean clock rate,
beast.base.evolution.branchratemodel.RandomLocalClockModel.clock.rate=Mean clock rate
'
inlinePlugins ='beast.base.inference.MCMC.distribution,
beast.base.evolution.sitemodel.SiteModel.substModel,
beast.base.evolution.tree.coalescent.ExponentialGrowth,
Expand Down
7 changes: 6 additions & 1 deletion src/beastfx/app/beauti/ThemeProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,13 @@ private static void initThemeMap() {
abstract public String getThemeName();


static public boolean clear = true;
static public boolean loadStyleSheet(Scene scene, String themeFile) {
try {
scene.getStylesheets().clear();
if (clear) {
scene.getStylesheets().clear();
clear = false;
}
URL url = ThemeProvider.class.getResource(themeFile);
String css = url.toExternalForm();
scene.getStylesheets().add(css);
Expand All @@ -99,6 +103,7 @@ static public boolean loadStyleSheet(Scene scene) {
* @return true if stylesheet was successfully loaded
*/
abstract public boolean loadMyStyleSheet(Scene scene);




Expand Down
2 changes: 1 addition & 1 deletion src/beastfx/app/tools/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public Application(beast.base.inference.Runnable analyser, String title, int pre
}

public Application(beast.base.inference.Runnable analyser, String[] suppressedInputs, String title, String[] args) throws Exception {
this(analyser, null, title, prefDialogWidth, prefDialogHeight, args);
this(analyser, suppressedInputs, title, prefDialogWidth, prefDialogHeight, args);
}

public Application(beast.base.inference.Runnable analyser, String[] suppressedInputs, String title, int prefDialogWidth, int prefDialogHeight, String[] args) throws Exception {
Expand Down
2 changes: 1 addition & 1 deletion src/beastfx/app/util/FXUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public static File[] getFile(String message, boolean isLoadNotSave, File default
if (extensions != null) {
for (String extension : extensions) {
if (extension.equals("")) {
extension = "*.*";
extension = "*";
}
fileChooser.getExtensionFilters().add(
new FileChooser.ExtensionFilter(extension, "*."+extension)
Expand Down
4 changes: 2 additions & 2 deletions version.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<package name='BEAST.app' version='2.7.3'>
<depends on='BEAST.base' atleast='2.7.3' atmost="2.7.9"/>
<package name='BEAST.app' version='2.7.4'>
<depends on='BEAST.base' atleast='2.7.4' atmost="2.7.9"/>

<service type="beastfx.app.beauti.ThemeProvider">
<provider classname="beastfx.app.beauti.theme.Default"/>
Expand Down

0 comments on commit a215adc

Please sign in to comment.