bundles/org.eclipse.orion.client.ui/web/orion/urlUtils.js
function processURLSegments(parentNode, segments) {
		segments.forEach(function(segment) {
			if (segment.urlStr){
				var link = document.createElement("a"); //$NON-NLS-0$
		        link.href = segment.urlStr;
		        link.appendChild(document.createTextNode(segment.segmentStr));
		        link.dir = bidiUtils.getTextDirection(segment.segmentStr);
				parentNode.appendChild(link);
			} else {
				var plainText = document.createElement("span"); //$NON-NLS-0$
				plainText.textContent = segment.segmentStr;
				plainText.dir = bidiUtils.getTextDirection(segment.segmentStr);
				parentNode.appendChild(plainText);
			}
		});
	}
function processURLSegments(parentNode, segments) {
		segments.forEach(function(segment) {
			if (segment.urlStr){
				var link = document.createElement("a"); //$NON-NLS-0$
		        link.href = segment.urlStr;
		        link.appendChild(document.createTextNode(segment.segmentStr));
		        link.dir = bidiUtils.getTextDirection(segment.segmentStr);
				parentNode.appendChild(link);
			} else {
				var plainText = document.createElement("span"); //$NON-NLS-0$
				plainText.textContent = segment.segmentStr;
				plainText.dir = bidiUtils.getTextDirection(segment.segmentStr);
				parentNode.appendChild(plainText);
			}
		});
	}
function processURLSegments ( parentNode , segments ) { segments . forEach ( function ( segment ) { if ( segment . urlStr ) { var link = document . createElement ( "a" ) ; //$NON-NLS-0$ link . href = segment . urlStr ; link . appendChild ( document . createTextNode ( segment . segmentStr ) ) ; link . dir = bidiUtils . getTextDirection ( segment . segmentStr ) ; parentNode . appendChild ( link ) ; } else { var plainText = document . createElement ( "span" ) ; //$NON-NLS-0$ plainText . textContent = segment . segmentStr ; plainText . dir = bidiUtils . getTextDirection ( segment . segmentStr ) ; parentNode . appendChild ( plainText ) ; } } ) ; }
Render an array of string segments.
@param {dom node} parentNode The given parent dom node where the segments will be rendered.
@param {orion.urlUtils.Segment[]} segments The given array containing all the segments.
Render an array of string segments .