function v = getViewer(h)
%GETVIEWER creates a DAStudio Explorer for viewing the BuildInfo object

% Copyright 1997-2019 The MathWorks, Inc.

v = h.Viewer;
if isempty(v) || ~ishandle(v)

v = DAStudio.Explorer(h);
v.Title = 'Build Info';
h.Viewer = v;
v.setTreeTitle('Build Info');

end
show(v);