if (Util.nullSafeEquals(newName, oldName)) {
return;
}
// completely new name, set new name for domain
DataMapDefaults pref = eventController.getDataMapPreferences("");
DataMapEvent e = new DataMapEvent(this, map, map.getName());
ProjectUtil.setDataMapName(eventController.getCurrentDataDomain(), map, newName);
pref.rename(newName);
eventController.fireDataMapEvent(e);
}