aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/util
diff options
context:
space:
mode:
authorYana Stamcheva <yana@jitsi.org>2013-02-25 10:54:30 +0000
committerYana Stamcheva <yana@jitsi.org>2013-02-25 10:54:30 +0000
commitddbac357d03d5d3588066af492151e8cb5600b74 (patch)
treecac0fcf906e3ae1de5d0c5489a618f8b04cb9342 /src/net/java/sip/communicator/util
parent29cf3a8243e8b172c1b23d7b5321fdb33fd8f35c (diff)
downloadjitsi-ddbac357d03d5d3588066af492151e8cb5600b74.zip
jitsi-ddbac357d03d5d3588066af492151e8cb5600b74.tar.gz
jitsi-ddbac357d03d5d3588066af492151e8cb5600b74.tar.bz2
Adds a default value for the account config property.
Diffstat (limited to 'src/net/java/sip/communicator/util')
-rw-r--r--src/net/java/sip/communicator/util/ConfigurationUtils.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/util/ConfigurationUtils.java b/src/net/java/sip/communicator/util/ConfigurationUtils.java
index 879b681..07e968d 100644
--- a/src/net/java/sip/communicator/util/ConfigurationUtils.java
+++ b/src/net/java/sip/communicator/util/ConfigurationUtils.java
@@ -2284,6 +2284,29 @@ public class ConfigurationUtils
}
/**
+ * Indicates if the account configuration is disabled.
+ *
+ * @return <tt>true</tt> if the account manual configuration and creation
+ * is disabled, otherwise return <tt>false</tt>
+ */
+ public static boolean isShowAccountConfig()
+ {
+ final String SHOW_ACCOUNT_CONFIG_PROP
+ = "net.java.sip.communicator.impl.gui.main."
+ + "configforms.SHOW_ACCOUNT_CONFIG";
+
+ boolean defaultValue
+ = !Boolean.parseBoolean(UtilActivator.getResources()
+ .getSettingsString(
+ "impl.gui.main.account.ACCOUNT_CONFIG_DISABLED"));
+
+ Boolean showAccountConfigProp
+ = configService.getBoolean(SHOW_ACCOUNT_CONFIG_PROP, defaultValue);
+
+ return showAccountConfigProp.booleanValue();
+ }
+
+ /**
* Listens for changes of the properties.
*/
private static class ConfigurationChangeListener