function schema
% CallbackInfo class schema. This class encapsulates all the information
% needed for a custom menu item callback. See methods and properties below
% for more details.
%

% Copyright 2004 The MathWorks, Inc.

% =========================================================================
% Class Definition
% =========================================================================
dasPackage = findpackage('DAStudio');
superClass = findclass(dasPackage, 'Tool'); 
thisClass  = schema.class(dasPackage, 'CallbackInfo', superClass);
  
% =========================================================================
% Class Methods
% =========================================================================
% getSelection - extracts the current selection list based on the uiObject 
%                property.
%
m = schema.method(thisClass, 'getSelection');
s = m.Signature;
s.varargin    = 'off';
s.InputTypes  = {'handle'};
s.OutputTypes = {'mxArray'};

% =========================================================================
% Class Properties
% =========================================================================
% 
% uiObject - the object that represents the ui tool/context from which the 
%            callback originates (e.g., Simulink.BlockDiagram, Stateflow.Chart,
%            DAStudio.Explorer).
% model    - the model which the uiObject is viewing
% arg      - a user defined argument that was registered to be passed back with this 
%            specific callback
% ctxMenuFlag - an ugly flag meant to save bill coding time

p = schema.prop(thisClass, 'uiObject', 'handle');
p = schema.prop(thisClass, 'model', 'handle');
p = schema.prop(thisClass, 'arg', 'mxArray');
p = schema.prop(thisClass, 'ctxMenuFlag', 'bool');

