classdef SetupOptimizationDetailsAction < fxptui.internal.action.Action
    %SetupOptimizationDetailsAction Setup optimization details document in
    % FPT UI
    
    %   Copyright 2020 The MathWorks, Inc.
    
    methods(Access = {?fxptui.internal.action.Action, ?WorkflowTestCase})
        
        function executeLocal(~, ~, ~)
            
            fptInstance = fxptui.FixedPointTool.getExistingInstance;
            % switch to optimization details document view in UI
            dataController = fptInstance.getDataController();
            
            switchIntent = fxptui.message('setupOptimizationDetails');
            dataController.sendFPTUIDocumentSelection(switchIntent);
            
        end
        
    end
end