function menu = getPopupSchema(this, manager)
% GETPOPUPSCHEMA Constructs the default popup menu

% Author(s): 
% Revised: 
% Copyright 1986-2002 The MathWorks, Inc.
% $Revision: 1.1.6.1 $ $Date: 2004/12/26 21:43:01 $

%% Add the Add time series menu
menu  = com.mathworks.mwswing.MJPopupMenu('Default Menu');
menuAddTs = com.mathworks.mwswing.MJMenuItem('Add Time Series...');
menu.add(menuAddTs);

this.Handles.MenuItems = [menuAddTs];
set(handle(menuAddTs,'CallbackProperties'), 'ActionPerformedCallback', ...
    @(es,ed) addNode(this));


% % --------------------------------------------------------------------------- %
% function LocalAdd(hSrc, hData, this, manager)
% 
% if ~isempty(this.addNode)
%     manager.tree.getTree.getModel.nodesWereInserted(this.getTreeNodeInterface, ...
%         this.getTreeNodeInterface.getLeafCount-1);
% end

