diff --git a/src/main/java/org/isatools/isacreator/gui/DataEntryEnvironment.java b/src/main/java/org/isatools/isacreator/gui/DataEntryEnvironment.java index 1766df1e..7c9ad335 100755 --- a/src/main/java/org/isatools/isacreator/gui/DataEntryEnvironment.java +++ b/src/main/java/org/isatools/isacreator/gui/DataEntryEnvironment.java @@ -48,6 +48,7 @@ The ISA Team and the ISA software suite have been funded by the EU Carcinogenomi import org.isatools.isacreator.model.Study; import org.isatools.isacreator.ontologymanager.OntologyManager; import org.isatools.isacreator.ontologymanager.OntologySourceRefObject; +import org.isatools.isacreator.settings.ISAcreatorProperties; import org.isatools.isacreator.spreadsheet.Spreadsheet; import org.isatools.isacreator.spreadsheet.model.TableReferenceObject; import org.isatools.isacreator.utils.datastructures.CollectionUtils; @@ -294,7 +295,9 @@ public void run() { * @return - DefaultMutableTreeNode. The root node with all nodes contained within it. */ private DefaultMutableTreeNode buildTreeFromInvestigation(Investigation inv) { - if (inv.getStudies().size() > 1) { + boolean alwaysShowInvestigation = Boolean.valueOf(ISAcreatorProperties.getProperty("alwaysShowInvestigation")); + System.out.println("Should I always show the investigation? " + alwaysShowInvestigation); + if (inv.getStudies().size() > 1 || alwaysShowInvestigation) { inv.getUserInterface().update(); overviewTreeRoot = new DefaultMutableTreeNode(inv); diff --git a/src/main/resources/defaultConfigs/defaultsettings.properties b/src/main/resources/defaultConfigs/defaultsettings.properties index 4a0b616a..f964171a 100644 --- a/src/main/resources/defaultConfigs/defaultsettings.properties +++ b/src/main/resources/defaultConfigs/defaultsettings.properties @@ -1 +1,2 @@ -strictValidation.isOn=false \ No newline at end of file +strictValidation.isOn=false +alwaysShowInvestigation=false \ No newline at end of file