src/extensions/default/NavigationAndHistory/main.js
function _createMROFList() {

        var paneList = MainViewManager.getPaneIdList(),
            mrofList = [],
            fileList,
            index;

        var pane, file, mrofEntry, paneCount, fileCount;
        // Iterate over the pane ID list
        for (paneCount = 0; paneCount < paneList.length; paneCount++) {
            pane = paneList[paneCount];
            fileList = MainViewManager.getWorkingSet(pane);
            // Iterate over the file list for this pane
            for (fileCount = 0; fileCount < fileList.length; fileCount++) {
                file = fileList[fileCount];
                mrofEntry = _makeMROFListEntry(file.fullPath, pane, null);
                // Add it in the MRU list order
                index = MainViewManager.findInGlobalMRUList(pane, file);
                mrofList[index] = mrofEntry;
            }
        }

        return mrofList;
    }
function _createMROFList() {

        var paneList = MainViewManager.getPaneIdList(),
            mrofList = [],
            fileList,
            index;

        var pane, file, mrofEntry, paneCount, fileCount;
        // Iterate over the pane ID list
        for (paneCount = 0; paneCount < paneList.length; paneCount++) {
            pane = paneList[paneCount];
            fileList = MainViewManager.getWorkingSet(pane);
            // Iterate over the file list for this pane
            for (fileCount = 0; fileCount < fileList.length; fileCount++) {
                file = fileList[fileCount];
                mrofEntry = _makeMROFListEntry(file.fullPath, pane, null);
                // Add it in the MRU list order
                index = MainViewManager.findInGlobalMRUList(pane, file);
                mrofList[index] = mrofEntry;
            }
        }

        return mrofList;
    }
function _createMROFList ( ) { var paneList = MainViewManager . getPaneIdList ( ) , mrofList = [ ] , fileList , index ; var pane , file , mrofEntry , paneCount , fileCount ; // Iterate over the pane ID list for ( paneCount = 0 ; paneCount < paneList . length ; paneCount ++ ) { pane = paneList [ paneCount ] ; fileList = MainViewManager . getWorkingSet ( pane ) ; // Iterate over the file list for this pane for ( fileCount = 0 ; fileCount < fileList . length ; fileCount ++ ) { file = fileList [ fileCount ] ; mrofEntry = _makeMROFListEntry ( file . fullPath , pane , null ) ; // Add it in the MRU list order index = MainViewManager . findInGlobalMRUList ( pane , file ) ; mrofList [ index ] = mrofEntry ; } } return mrofList ; }
This function is used to create mrof when a project is opened for the firt time with the recent files feature
This routine acts as a logic to migrate existing viewlist to mrof structure
@private
This function is used to create mrof when a project is opened for the firt time with the recent files feature This routine acts as a logic to migrate existing viewlist to mrof structure