function strout=outlinestring(c)
%OUTLINESTRING display short component description
%   OUTLINESTRING(cobj) Returns a terse description of the
%   component in the setup file editor report outline.  The
%   default outlinestring method returns the component's name.

%   Copyright (c) 1997-2000 by The MathWorks, Inc.
%   $Revision: 1.5 $  $Date: 2000/03/23 19:35:25 $

if ~rgsf( 'is_parent_valid', c );
   strout = xlate('? Stateflow Chart Loop <invalid parent>');
   return;
end

if strcmp(c.att.LoopType, '$auto' )
   loopInfo=searchblocktype(c.zslmethods,'Stateflow block');
   
   typeIndex=find(strcmp(loopInfo.contextCode,getparentloop(c)));
   if ~isempty(typeIndex)
      typeIndex=typeIndex(1);
   else
      typeIndex=length(loopInfo.contextCode);
   end
   outline = loopInfo.contextName{typeIndex};
else
   outline = 'Manual selection';
end

strout=sprintf('Stateflow Chart Loop - %s', outline);