bundles/org.eclipse.orion.client.ui/web/orion/searchModel.js
function getReplacedFileContent(newContentHolder, updating, fileItem) {
			mSearchUtils.generateNewContents(updating, fileItem.contents, newContentHolder, fileItem, this._searchHelper.params.replace, this._searchHelper.inFileQuery.searchStrLength);
			newContentHolder.lineDelim = this._lineDelimiter;
	    }
function getReplacedFileContent(newContentHolder, updating, fileItem) {
			mSearchUtils.generateNewContents(updating, fileItem.contents, newContentHolder, fileItem, this._searchHelper.params.replace, this._searchHelper.inFileQuery.searchStrLength);
			newContentHolder.lineDelim = this._lineDelimiter;
	    }
function getReplacedFileContent ( newContentHolder , updating , fileItem ) { mSearchUtils . generateNewContents ( updating , fileItem . contents , newContentHolder , fileItem , this . _searchHelper . params . replace , this . _searchHelper . inFileQuery . searchStrLength ) ; newContentHolder . lineDelim = this . _lineDelimiter ; }
Get the replaced file contents by a given file model. Sync call. Required function.
@param {Object} newContentHolder The returned replaced file content holder. The content holder has to have a property called "contents". It can be either type of the below:
String type: the pure contents of the file
Array type: the lines of the file exclude the line delimeter. If an array type of contents is provided, the lineDelim property has to be defined. Otherwise "\n" is used.
@param {Boolean} updating The flag indicating if getting replaced file contets based on existing newContentHolder.contents. It can be ignored if over riding this function does not care the case below.
The explorer basically caches the current file's replaced contents. If only check box is changed on the same file, the falg is set to true when call this fucntion.
Lets say a file with 5000 lines has been changed only because one line is changed, then we do not have to replace the whole 5000 lines but only one line.
@param {Object} fileItem The file item that generates the replaced contents.
@override
Get the replaced file contents by a given file model . Sync call . Required function .