&& remoteUpdates.isSelected());
}
void setDomainName(String newName) {
if (newName == null || newName.trim().length() == 0) {
throw new ValidationException("Enter name for DataDomain");
}
Configuration configuration = ((ApplicationProject) Application.getProject())
.getConfiguration();
DataDomain domain = projectController.getCurrentDataDomain();
DataDomain matchingDomain = configuration.getDomain(newName);
if (matchingDomain == null) {
Domain prefs = projectController.getPreferenceDomainForDataDomain();
DomainEvent e = new DomainEvent(this, domain, domain.getName());
ProjectUtil.setDataDomainName(configuration, domain, newName);
prefs.rename(newName);
projectController.fireDomainEvent(e);
}
else if (matchingDomain != domain) {
throw new ValidationException("There is another DataDomain named '"
+ newName
+ "'. Use a different name.");
}
}