/// ------------------------------------------------------------------------------------ /// <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)); }); }
/// ------------------------------------------------------------------------------------ /// <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)); }); }
/// ----------------------------------------------------------------------------------- /// <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; } } }
/// ----------------------------------------------------------------------------------- /// <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; } } }