model_server/DIS_cm/src/ui_cm_put.cxx
// Tell user about any failed modules.
Tell user about any failed modules.
Tell user about any failed modules .
bool ui_cm_put::ProcessFailedModules(const symbolArr& failures)
{
	Initialize(ProcessFailedModules);
	if (failures.size() > 0) PutAlreadyInProgress = true;
	bool status = true;
	symbolPtr sym;
	ForEachS(sym, failures) {
		projModule* mod = checked_cast(projModule, sym);
		if (mod) {
			FailedModules.insert_last(mod);
			genString version;
			if (mod->is_locked() ) {
				LockedFailedModules.insert_last(mod);
			} else if (mod->need_3file_merge(version,
					mod->get_target_project(0) ) ) {
				MergeFailedModules.insert_last(mod);
			}
		}
	}
	genString command;
	if (failures.size() > 0) {
		command.printf("dis_launch_dialog CMPutStatus");
		rcall_dis_DISui_eval_async(DISui_app, (vstr*)command.str() );
	}
	return (status);
}
bool ui_cm_put :: ProcessFailedModules ( const symbolArr & failures ) { Initialize ( ProcessFailedModules ) ; if ( failures . size ( ) > 0 ) PutAlreadyInProgress = true ; bool status = true ; symbolPtr sym ; ForEachS ( sym , failures ) { projModule * mod = checked_cast ( projModule , sym ) ; if ( mod ) { FailedModules . insert_last ( mod ) ; genString version ; if ( mod -> is_locked ( ) ) { LockedFailedModules . insert_last ( mod ) ; } else if ( mod -> need_3file_merge ( version , mod -> get_target_project ( 0 ) ) ) { MergeFailedModules . insert_last ( mod ) ; } } } genString command ; if ( failures . size ( ) > 0 ) { command . printf ( " " ) ; rcall_dis_DISui_eval_async ( DISui_app , ( vstr * ) command . str ( ) ) ; } return ( status ) ; }
Tell user about any failed modules.
Tell user about any failed modules .
// If there are any failurers, we need to set the In-Progress flag. // Fill in the failure arrays. // Send failure info over to the client/user.