function scdlaunch(typekey)
% SCDLAUNCH  Launch the CETM
%
% TYPEKEY: 'linearization_simulink'  for Linearization Task
% TYPEKEY: 'compensator_design_simulink' for Simulink Compensator Design Task

% Author(s): John W. Glass 17-Nov-2005
% Copyright 2005-2011 The MathWorks, Inc.

switch typekey
    case 'linearization_simulink'
        % Launch the file picker
        [filename,pathname,~] = uigetfile('*.mdl;*.slx',...
            ctrlMsgUtils.message('Slcontrol:lintool:SelectModel'));
        if isequal(filename,0), return; end % Handle Cancel
        open_system(fullfile(pathname,filename));
        model = bdroot;
        show(slctrlguis.lintool.LinearAnalysisToolManager.getLinTool(model));
    case 'compensator_design_simulink'
        [~,W] = slctrlexplorer('initialize');
        newdlg = explorer.NewProjectDialog(W, typekey);
        javaMethodEDT('setVisible', newdlg.Dialog, true);
    
end

% LocalWords:  CETM TYPEKEY slx
