function workspace
%WORKSPACE Workspace Browser
%
%   See also EDIT and PATHTOOL.

%   Copyright (c) 1984-98 by The MathWorks, Inc.
%   $Revision: 1.25 $

if strcmp(studio,'on'),
  %make call to Java
  % Try to open the workspace browser
  try
      java('com/mathworks/ide/workspace/WorkspaceBrowser', ...
          'main','([Ljava/lang/String;)V',{});
  catch
    % Failed. Bail
    error('Failed to open workspace browser');
  end
  return
end % if strcmp java

if strncmp(computer, 'MA', 2)
  mactools('workspace');
else
  fullpath = mauifindexe('medit');
  if fullpath ~= 0
     if strncmp(computer,'PC',2) | miport ~= 0
        system_dependent('miedit','workspace', fullpath);
     else
        error('Graphical workspace browsing is unavailable.');
     end
  else
    error(['Graphical workspace browsing is unavailable: ' ...
           'can''t find the Workspace Browser executable.']);
  end
end




