function updateView(this, uiReport)
    % UPDATEVIEW sends UI report for FPT Web
    
    % Copyright 2019 The MathWorks, Inc.
    
    fptInstance = fxptui.FixedPointTool.getExistingInstance;
    isError = false;
    
    % g1994954 - update RunBrowser when preparation fails and return
    if(isempty(uiReport))
        isError = true;
        this.updateRunBrowser(fptInstance, isError);
        return;
    end
    
    % Use the same restore point available on the model
    uiReport.IsRestorePointAvailable = this.getRestorePointStatus(uiReport);
    
    % g1895203 - capture the updated model hierarchy after the preparation
    % and publish the tree data to the client only if the model is changed
    this.updateModelHierarchy(uiReport, fptInstance);
    
    % publish the analyzer report data to UI
    this.publishUIReport(uiReport);
    
    % update the RunBrowser with new data
    this.updateRunBrowser(fptInstance, isError);
end

