aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java')
-rw-r--r--src/net/java/sip/communicator/impl/gui/main/contactlist/CommonRightButtonMenu.java3
-rw-r--r--src/net/java/sip/communicator/impl/gui/main/contactlist/MetaContactRightButtonMenu.java3
-rw-r--r--src/net/java/sip/communicator/util/ConfigurationUtils.java23
3 files changed, 27 insertions, 2 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/contactlist/CommonRightButtonMenu.java b/src/net/java/sip/communicator/impl/gui/main/contactlist/CommonRightButtonMenu.java
index e699bb9..5ca3149 100644
--- a/src/net/java/sip/communicator/impl/gui/main/contactlist/CommonRightButtonMenu.java
+++ b/src/net/java/sip/communicator/impl/gui/main/contactlist/CommonRightButtonMenu.java
@@ -49,7 +49,8 @@ public class CommonRightButtonMenu
{
this.mainFrame = mainFrame;
- if (!ConfigurationUtils.isAddContactDisabled())
+ if (!ConfigurationUtils.isAddContactDisabled() &&
+ !ConfigurationUtils.isMergeContactDisabled())
this.add(addContactItem);
if (!ConfigurationUtils.isCreateGroupDisabled())
diff --git a/src/net/java/sip/communicator/impl/gui/main/contactlist/MetaContactRightButtonMenu.java b/src/net/java/sip/communicator/impl/gui/main/contactlist/MetaContactRightButtonMenu.java
index 7cf3dbe..af07109 100644
--- a/src/net/java/sip/communicator/impl/gui/main/contactlist/MetaContactRightButtonMenu.java
+++ b/src/net/java/sip/communicator/impl/gui/main/contactlist/MetaContactRightButtonMenu.java
@@ -584,7 +584,8 @@ public class MetaContactRightButtonMenu
addSeparator();
}
- if (!ConfigurationUtils.isAddContactDisabled())
+ if (!ConfigurationUtils.isAddContactDisabled() &&
+ !ConfigurationUtils.isMergeContactDisabled())
{
add(addContactItem);
addSeparator();
diff --git a/src/net/java/sip/communicator/util/ConfigurationUtils.java b/src/net/java/sip/communicator/util/ConfigurationUtils.java
index dcb72e3..99546a7 100644
--- a/src/net/java/sip/communicator/util/ConfigurationUtils.java
+++ b/src/net/java/sip/communicator/util/ConfigurationUtils.java
@@ -162,6 +162,11 @@ public class ConfigurationUtils
private static boolean isAddContactDisabled;
/**
+ * Indicates if the merge contact functionality is disabled.
+ */
+ private static boolean isMergeContactDisabled;
+
+ /**
* Indicates if the go to chatroom functionality is disabled.
*/
private static boolean isGoToChatroomDisabled;
@@ -644,6 +649,13 @@ public class ConfigurationUtils
"CONTACT_ADD_DISABLED",
false);
+ // Load the "MERGE_CONTACT_DISABLED" property.
+ isMergeContactDisabled
+ = configService.getBoolean(
+ "net.java.sip.communicator.impl.gui.main.contactlist." +
+ "CONTACT_MERGE_DISABLED",
+ false);
+
// Load the "CREATE_GROUP_DISABLED" property.
isCreateGroupDisabled
= configService.getBoolean(
@@ -1185,6 +1197,17 @@ public class ConfigurationUtils
}
/**
+ * Returns <code>true</code> if the "MERGE_CONTACT_DISABLED" property is
+ * true, otherwise - returns <code>false</code>.
+ * @return <code>true</code> if the "MERGE_CONTACT_DISABLED" property is
+ * true, otherwise - returns <code>false</code>.
+ */
+ public static boolean isMergeContactDisabled()
+ {
+ return isMergeContactDisabled;
+ }
+
+ /**
* Returns <code>true</code> if the "CREATE_GROUP_DISABLED" property is
* true, otherwise - returns <code>false</code>..
* @return <code>true</code> if the "CREATE_GROUP_DISABLED" property is