MapQueryCacheFactory.class.getName()));
}
void setDomainName(String newName) {
DataChannelDescriptor dataChannelDescriptor = (DataChannelDescriptor) Application
.getInstance()
.getProject()
.getRootNode();
if (Util.nullSafeEquals(dataChannelDescriptor.getName(), newName)) {
return;
}
if (newName == null || newName.trim().length() == 0) {
throw new ValidationException("Enter name for DataDomain");
}
Preferences prefs = projectController.getPreferenceForDataDomain();
DomainEvent e = new DomainEvent(
this,
dataChannelDescriptor,
dataChannelDescriptor.getName());
dataChannelDescriptor.setName(newName);
RenamedPreferences.copyPreferences(newName, prefs);
projectController.fireDomainEvent(e);
}