in src/net/sourceforge/transparent/BaseOrUCM.java [29:56]
public void checkRootsForUCMMismatch() {
Boolean isUCM = isUCMByRoots();
if (isUCM == null) {
final MyNotification oldNotification = myCurrentNotification.getAndSet(null);
if (oldNotification != null) {
oldNotification.expire();
}
return;
}
final CCaseSharedConfig sharedConfig = CCaseSharedConfig.getInstance(myVcs.getProject());
final boolean useUcmModelConfig = sharedConfig.isUseUcmModel();
MyNotification newNotification = null;
if (useUcmModelConfig && (! isUCM)) {
newNotification = new MyNotification("Project is configured to use UCM model, but it is base ClearCase");
} else if ((! useUcmModelConfig) && isUCM) {
newNotification = new MyNotification("Project is configured as base ClearCase, but UCM model is used");
}
final MyNotification oldNotification = myCurrentNotification.getAndSet(newNotification);
if (oldNotification != null) {
oldNotification.expire();
}
if (newNotification != null) {
Notifications.Bus.notify(newNotification, myVcs.getProject());
}
}