function refreshDialogCallback(dialog, tag)
%

% Copyright 2021 The MathWorks, Inc.

% g2266810: function to explicitly refresh dialog and re-populate available hierarchy
% names (which shouldn't be repopulated for other 'DialogRefresh' calls)
assert(strcmp(tag, 'Refresh'));
dialog.getSource.UserData1.shouldComputeHierStringSuggestions = true;
dialog.refresh();