else
{
String regionStr = (String) regionId;
String paramName = null;
DataTypeItem paramType = null;
ProcessVariable processVariable = null;
if (regionStr.startsWith(REGION_PARAM_BY_TYPE))
{
paramType = (DataTypeItem) data.getTransferData(ClientFlavors.TYPE_ITEM);
paramName = paramType.getName();
}
else if (regionStr.startsWith(REGION_PARAM_BY_VARIABLE))
{
processVariable = (ProcessVariable) data.getTransferData(ClientFlavors.PROCESS_VARIABLE);
paramType = processVariable.getDataType();
paramName = processVariable.getName();
if (socket.getParamByName(paramName) != null)
{
String msg = "The socket already has a parameter named '" + paramName
+ "'.\nPlease connect the process variable to the existing parameter.";
JMsgBox.show(null, msg, JMsgBox.ICON_ERROR);