Commit fb84eae9 authored by Mark Lawford's avatar Mark Lawford
Browse files

Hacked a work around for R2011a release change in code block locations and...

Hacked a work around for R2011a release change in code block locations and updated deprecated status bar visible call.

git-svn-id: https://groke.mcmaster.ca/svn/grad/colin/trunk/TableTool@7441 57e6efec-57d4-0310-aeb1-a6c144bb1a8b
parent 145b8e8c
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -40,8 +40,12 @@ code_blocks = find_system(getfullname(block_handle),'LookUnderMasks','all','Bloc
% if the code block does not already exists we need to create a
% new one
if (isempty(code_blocks))
    if (sum(version('-release') >= '2011a') >= 5)
        code_blocks = add_block('simulink/User-Defined Functions/MATLAB Function',code_block);
    else
        code_blocks = add_block('simulink/User-Defined Functions/Embedded MATLAB Function',code_block);
    end        
end

eml_handle = code_blocks;
% find the state of the code block and update it to the new
+1 −1
Original line number Diff line number Diff line
@@ -226,7 +226,7 @@ function statusbarObj = setFigureStatus(hFig, deleteFlag, updateFlag, statusText
            if isempty(statusbarObj)
               statusbarObj = com.mathworks.mwswing.MJStatusBar;
               jProgressBar = javax.swing.JProgressBar;
               set(jProgressBar, 'Visible','off');
               jProgressBar.setVisible(false);
               statusbarObj.add(jProgressBar,'West');  % Beware: East also works but doesn't resize automatically
               jRootPane.setStatusBar(statusbarObj);
            end