/// ------------------------------------------------------------------------------------
 /// <summary>
 /// Fixture setup - define Scripture Check IDs.
 /// </summary>
 /// ------------------------------------------------------------------------------------
 public override void FixtureSetup()
 {
     base.FixtureSetup();
     // force scripture check definitions to be created - don't want this done as
     // part of the normal undoable work.
     NonUndoableUnitOfWorkHelper.Do(m_actionHandler, () =>
     {
         InstalledScriptureChecks.GetChecks(new ScrChecksDataSource(m_scr.Cache));
     });
 }
예제 #2
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Fixture setup - define Scripture Check IDs.
 /// </summary>
 /// ------------------------------------------------------------------------------------
 public override void FixtureSetup()
 {
     base.FixtureSetup();
     // force scripture check definitions to be created - don't want this done as
     // part of the normal undoable work.
     NonUndoableUnitOfWorkHelper.Do(m_actionHandler, () =>
     {
         InstalledScriptureChecks.GetChecks(new ScrChecksDataSource(m_scr.Cache,
                                                                    ResourceHelper.GetResourceString("kstidPunctCheckWhitespaceChar"), FwDirectoryFinder.LegacyWordformingCharOverridesFile));
     });
 }
예제 #3
0
        /// -----------------------------------------------------------------------------------
        /// <summary>
        /// Ensure that the error checking annotation subtypes are defined.
        /// </summary>
        /// <remarks>This may need to be made more flexible somehow.</remarks>
        /// -----------------------------------------------------------------------------------
        private static void CacheCheckIds()
        {
            if (s_checkNamesToGuids != null)
            {
                return;
            }

            // This creates the annotation types for installed checks.
            SortedList <ScrCheckKey, IScriptureCheck> chks =
                InstalledScriptureChecks.GetChecks(new ScrChecksDataSource(s_scr.Cache));

            if (chks != null)
            {
                s_checkNamesToGuids = new Dictionary <string, Guid>(chks.Count);
                foreach (IScriptureCheck check in chks.Values)
                {
                    s_checkNamesToGuids[check.CheckName] = check.CheckId;
                }
            }
        }
예제 #4
0
        /// -----------------------------------------------------------------------------------
        /// <summary>
        /// Ensure that the error checking annotation subtypes are defined.
        /// </summary>
        /// <remarks>This may need to be made more flexible somehow.</remarks>
        /// -----------------------------------------------------------------------------------
        private static void CacheCheckIds()
        {
            if (s_checkNamesToGuids != null)
            {
                return;
            }

            // This creates the annotation types for installed checks.
            SortedList <ScrCheckKey, IScriptureCheck> chks =
                InstalledScriptureChecks.GetChecks(new ScrChecksDataSource(s_scr.Cache,
                                                                           ResourceHelper.GetResourceString("kstidPunctCheckWhitespaceChar"), FwDirectoryFinder.LegacyWordformingCharOverridesFile));

            if (chks != null)
            {
                s_checkNamesToGuids = new Dictionary <string, Guid>(chks.Count);
                foreach (IScriptureCheck check in chks.Values)
                {
                    s_checkNamesToGuids[check.CheckName] = check.CheckId;
                }
            }
        }