diff options
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.client/src/org/eclipse/osee/framework/core/client/OseeClientProperties.java')
-rw-r--r-- | plugins/org.eclipse.osee.framework.core.client/src/org/eclipse/osee/framework/core/client/OseeClientProperties.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.client/src/org/eclipse/osee/framework/core/client/OseeClientProperties.java b/plugins/org.eclipse.osee.framework.core.client/src/org/eclipse/osee/framework/core/client/OseeClientProperties.java index 10a6b70d968..5623a0e1ad4 100644 --- a/plugins/org.eclipse.osee.framework.core.client/src/org/eclipse/osee/framework/core/client/OseeClientProperties.java +++ b/plugins/org.eclipse.osee.framework.core.client/src/org/eclipse/osee/framework/core/client/OseeClientProperties.java @@ -48,6 +48,8 @@ public class OseeClientProperties extends OseeProperties { private static final String OSEE_PROMPT_ON_DB_INIT = "osee.prompt.on.db.init"; private static final String OSEE_CHOICE_ON_DB_INIT = "osee.choice.on.db.init"; + private static final String OSEE_IS_IN_DB_INIT = "osee.is.in.db.init"; + private enum InitializerFlag { overwrite_settings, client_defaults; @@ -77,6 +79,14 @@ public class OseeClientProperties extends OseeProperties { initialize(); } + public static boolean isInDbInit() { + return Boolean.valueOf(getProperty(OSEE_IS_IN_DB_INIT)); + } + + public static void setInDbInit(boolean value) { + System.setProperty(OSEE_IS_IN_DB_INIT, Boolean.toString(value)); + } + // /** // * Retrieves where table data should be imported from during OSEE database initialization. The default is to use the // * database connection id specified in the schema.xml files. |