
function dlgStruct = getActiveDialogSchema(obj, ~)

    dlgTag = 'Tree_';
    %show if it is not empty or edited
    rootNode = obj.resultsExplorer.root.activeTree.root;    
    if ~obj.resultsExplorer.isFilterExplorerFeatureOn 
        if numel(rootNode.children) >= 1
            if obj.needAggregate
                rootNode.aggregate();
                obj.needAggregate = false;
            end
            actionGroup = rootNode.getActionGroup(true);
            actionGroup.Items(3) = [];% no save for filter actions
            filterTab = obj.getFilterTab(dlgTag, actionGroup);
            dlgStruct = rootNode.getNodeDialogSchema(true);        
            reportTab.Items = dlgStruct.Items;
            reportTab.Name = getString(message('Slvnv:simcoverage:cvresultsexplorer:Report'));
            reportTab.Tag = [dlgTag, 'reportTab'];
            reportTab.LayoutGrid  = [3 1]; 
            reportTab.RowStretch = [0 0 1];
            tabCont.Tabs  = { reportTab, filterTab};
        else
            dlgStruct = rootNode.getNodeDialogSchema(false);        
            tabCont.Tabs  = {obj.getFilterTab(dlgTag, {})};    
        end

        tabCont.Type = 'tab';
        tabCont.Name = '';
        tabCont.TabChangedCallback = 'cvi.ResultsExplorer.Tree.tabChangedCallback';
        tabCont.ActiveTab = obj.activeTab;
        tabCont.RowSpan = [1 1];
        tabCont.Tag = [dlgTag 'tab'];
        dlgStruct.Items       = {tabCont};
    else
        if numel(rootNode.children) >= 1
            if obj.needAggregate
                rootNode.aggregate();
                obj.needAggregate = false;
            end
            dlgStruct = rootNode.getNodeDialogSchema(true);        
        else
            dlgStruct = rootNode.getNodeDialogSchema(false);        
        end
    end

dlgStruct.DialogTag = [dlgTag 'active'];
dlgStruct.HelpArgs  = {obj.resultsExplorer , dlgStruct.DialogTag};
dlgStruct.HelpMethod  = 'helpFcn';


end 
