bundles/org.eclipse.orion.client.collab/web/orion/collab/collabClient.js
function(clientId, contextP, url, editing) {
			var peer = this.getPeer(clientId);
			// Peer might be loading. Once it is loaded, this annotation will be automatically updated,
			// so we can safely leave it blank.
			var name = (peer && peer.name) ? peer.name : 'Unknown';
			var color = (peer && peer.color) ? peer.color : '#000000';
			if (url) {
				url = contextP + this.getFileSystemPrefix() + url;
			}
			this.collabFileAnnotations[clientId] = new CollabFileAnnotation(name, color, url, this.projectRelativeLocation(url), editing);
			this._requestFileAnnotationUpdate();
		}
function(clientId, contextP, url, editing) {
			var peer = this.getPeer(clientId);
			// Peer might be loading. Once it is loaded, this annotation will be automatically updated,
			// so we can safely leave it blank.
			var name = (peer && peer.name) ? peer.name : 'Unknown';
			var color = (peer && peer.color) ? peer.color : '#000000';
			if (url) {
				url = contextP + this.getFileSystemPrefix() + url;
			}
			this.collabFileAnnotations[clientId] = new CollabFileAnnotation(name, color, url, this.projectRelativeLocation(url), editing);
			this._requestFileAnnotationUpdate();
		}
function ( clientId , contextP , url , editing ) { var peer = this . getPeer ( clientId ) ; // Peer might be loading. Once it is loaded, this annotation will be automatically updated, // so we can safely leave it blank. var name = ( peer && peer . name ) ? peer . name : 'Unknown' ; var color = ( peer && peer . color ) ? peer . color : '#000000' ; if ( url ) { url = contextP + this . getFileSystemPrefix ( ) + url ; } this . collabFileAnnotations [ clientId ] = new CollabFileAnnotation ( name , color , url , this . projectRelativeLocation ( url ) , editing ) ; this . _requestFileAnnotationUpdate ( ) ; }
Add or update a record of collaborator file annotation and request to update UI

@param {string} clientId
@param {string} url
@param {boolean} editing
Add or update a record of collaborator file annotation and request to update UI