function this = Workspace(varargin)
% WORKSPACE Constructor for @Workspace object

% Author(s): Bora Eryilmaz
% Revised:
% Copyright 1986-2001 The MathWorks, Inc.
% $Revision: 1.1.6.1 $ $Date: 2004/12/26 21:36:12 $

% Create class instance
this = tsexplorer.Workspace;
this.generic_listeners;

% Check input arguments
if nargin >= 1
  this.Label = varargin{1};
else
  this.Label = 'Workspace';
end

this.AllowsChildren = true;
this.Editable  = true;
this.Icon      = fullfile(matlabroot, 'toolbox', 'matlab', 'icons', ...
                          'foldericon.gif');
% this.Resources = 'com.mathworks.toolbox.control.resources.Explorer_Menus_Toolbars';
% this.Status    = 'Default explorer node.';

% Build tree node. Note in the CETM there is no need to do this becuase the
% Explorer calls it when building the tree
this.getTreeNodeInterface;
