function hiliteMLResult(~, selection)
% HIGHLIGHTMLRESULT highlights the MATLAB variable in codeview if avilable
% or highlights in desktop MATLAB editor. 

% Copyright 2018-2019 The MathWorks, Inc.

if fxptui.isMATLABFunctionBlockConversionEnabled() && coder.internal.mlfb.gui.fxptToolIsCodeViewEnabled('table')
    coder.internal.mlfb.gui.fxptToolShowResultInCodeView;
else
    % TODO: This dependency on fxptds will be removed once AbstractActions is
    % moved out of fxptds* hierarchy 
    fxptds.AbstractActions.selectAndInvoke('hiliteInEditor', selection);
end
