Home > NoiseTools > private > warnfiguredialog.m

warnfiguredialog

PURPOSE ^

Copyright 2006-2012 The MathWorks, Inc.

SYNOPSIS ^

function warnfiguredialog(functionName)

DESCRIPTION ^

   Copyright 2006-2012 The MathWorks, Inc.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function warnfiguredialog(functionName)
0002 
0003 %   Copyright 2006-2012 The MathWorks, Inc.
0004 
0005 % Shows the warning in -nodisplay and -noFigureWindows mode
0006 % Shows the error in -nojvm mode
0007 
0008 % (usejava('jvm') will return true in -nodisplay and -noFigureWindows mode,
0009 % but false in -nojvm mode)
0010 
0011 if ~usejava('jvm')
0012     error(message('MATLAB:HandleGraphics:noJVM'));
0013 end
0014 
0015 % @TODO When we are ready to deprecate dialogs in NoFigureWindows modes
0016 % other than nojvm, use this check to throw errors:
0017 % if feature('NoFigureWindows')
0018 
0019 % if ~usejava('awt') % adding warnings for the noawt
0020 if ~feature('ShowFigureWindows')
0021     warningId = strcat('MATLAB:', functionName, ':DeprecatedBehavior');
0022 
0023     % @HACK HACK alert: if you are modifying this message, please also modify
0024     % the same message in the following files:
0025     %  * matlab/toolbox/matlab/graphics/private/warnfiguredialog.m
0026     warning(warningId, sprintf(getString(message('MATLAB:warnfiguredialog:DeprecatedBehavior'))));
0027 end

Generated on Mon 10-Nov-2014 14:40:42 by m2html © 2005