|
65 | 65 | */ |
66 | 66 | public class BeautiFrame extends DocumentFrame { |
67 | 67 |
|
68 | | - private static final boolean ENABLE_ANCESTRAL_STATES = true; |
69 | | - |
70 | 68 | private static final long serialVersionUID = 2114148696789612509L; |
71 | 69 |
|
72 | 70 | public final static String DATA_PARTITIONS = "Partitions"; |
@@ -200,13 +198,13 @@ public void initializeComponents() { |
200 | 198 | "Select the priors on trees including coalescent models<br>" + |
201 | 199 | "birth-death speciation models and the *BEAST gene tree,<br>" + |
202 | 200 | "species tree options.</html>"); |
203 | | - if (ENABLE_ANCESTRAL_STATES) { |
204 | | - tabbedPane.addTab(ANCESTRAL_STATES, ancestralStatesPanel); |
205 | | - tabbedPane.setToolTipTextAt(index++, "<html>" + |
206 | | - "Select options for sampling ancestral states at specific<br>" + |
207 | | - "or all common ancestors, models of counting state changes<br>" + |
208 | | - "and models of sequencing error for data partitions.</html>"); |
209 | | - } |
| 201 | + |
| 202 | + tabbedPane.addTab(ANCESTRAL_STATES, ancestralStatesPanel); |
| 203 | + tabbedPane.setToolTipTextAt(index++, "<html>" + |
| 204 | + "Select options for sampling ancestral states at specific<br>" + |
| 205 | + "or all common ancestors, models of counting state changes<br>" + |
| 206 | + "and models of sequencing error for data partitions.</html>"); |
| 207 | + |
210 | 208 | tabbedPane.addTab(PRIORS, priorsPanel); |
211 | 209 | tabbedPane.setToolTipTextAt(index++, "<html>" + |
212 | 210 | "Specify prior probability distributions on each and every<br>" + |
@@ -319,9 +317,7 @@ public void setAllOptions() { |
319 | 317 | siteModelsPanel.setOptions(options); |
320 | 318 | clockModelsPanel.setOptions(options); |
321 | 319 | treesPanel.setOptions(options); |
322 | | - if (ENABLE_ANCESTRAL_STATES) { |
323 | | - ancestralStatesPanel.setOptions(options); |
324 | | - } |
| 320 | + ancestralStatesPanel.setOptions(options); |
325 | 321 | priorsPanel.setOptions(options); |
326 | 322 | operatorsPanel.setOptions(options); |
327 | 323 | mcmcPanel.setOptions(options); |
@@ -357,9 +353,7 @@ private void getAllOptions() { |
357 | 353 | siteModelsPanel.getOptions(options); |
358 | 354 | clockModelsPanel.getOptions(options); |
359 | 355 | treesPanel.getOptions(options); |
360 | | - if (ENABLE_ANCESTRAL_STATES) { |
361 | | - ancestralStatesPanel.getOptions(options); |
362 | | - } |
| 356 | + ancestralStatesPanel.getOptions(options); |
363 | 357 | priorsPanel.getOptions(options); |
364 | 358 | operatorsPanel.getOptions(options); |
365 | 359 | mcmcPanel.getOptions(options); |
@@ -677,18 +671,7 @@ public boolean setupStarBEAST(boolean useStarBEAST) { |
677 | 671 | tabbedPane.insertTab("Species Sets", null, speciesSetPanel, null, 1); |
678 | 672 |
|
679 | 673 | } else { // remove species |
680 | | - // why delete this? The user may want to use it again |
681 | | - // because it is how *BEAST reverse to normal BEAST, otherwise after uncheck, everything goes wrong. |
682 | | - |
683 | | - // AR - it is a fundamental point of UI design that we don't delete the user's work. |
684 | | - // If the user had hand typed all the species designations in and then just switched *BEAST |
685 | | - // off for a moment and lost all that work they would be annoyed. We need to work out what |
686 | | - // why turning off *BEAST doesn't fully work. |
687 | | - |
688 | | -// if (options.traitExists(TraitData.TRAIT_SPECIES)) { |
689 | | -// traitsPanel.removeTrait(TraitData.TRAIT_SPECIES); |
690 | | - options.fileNameStem = MCMCPanel.fileNameStem; |
691 | | -// } |
| 674 | + options.fileNameStem = MCMCPanel.DEFAULT_FILE_NAME_STEM; |
692 | 675 |
|
693 | 676 | tabbedPane.removeTabAt(1); |
694 | 677 | tabbedPane.insertTab("Taxon Sets", null, taxonSetPanel, null, 1); |
|
0 commit comments