コード例 #1
0
        private void UpdateInsertUIReportGlobals()
        {
            _clearMenus(rmnuReportGlobals, cmnuReportGlobals);
            if (_activeScriptEditor == null)
            {
                return;
            }
            var item = _activeScriptEditor.CurrentScriptItem;

            if (item == null || item.IsTextMode)
            {
                return;
            }
            var contextKind = item.Context.ContextKind;

            if (contextKind == ScriptEditorContextKind.DataView || contextKind == ScriptEditorContextKind.MetaView)
            {
                return;
            }

            _report.ParseGlobalScript();
            _addMenus(rmnuReportGlobals, cmnuReportGlobals, _report.GetGlobalFunctions());
            _addMenus(rmnuReportGlobals, cmnuReportGlobals, _report.GetGlobalSubs());
        }