protected override void Execute() { EditorController editorController = SdlTradosStudio.Application.GetController <EditorController>(); EditorService editorService = new EditorService(editorController.ActiveDocument); AntidoteClient antidotedClient = new AntidoteClient(editorService); AntidoteApiOle antidoteApiOle = new AntidoteApiOle(antidotedClient); antidoteApiOle.CallAntidote(ConstantsUtils.LastSelectedDictionary); }
protected override void Execute() { Logger.IntializeLogger(); EditorController editorController = SdlTradosStudio.Application.GetController <EditorController>(); EditorService editorService = new EditorService(editorController.ActiveDocument); AntidoteClient antidotedClient = new AntidoteClient(editorService, true); AntidoteApiOle antidoteApiOle = new AntidoteApiOle(antidotedClient); Log.Information("Starting Antidote for correction!"); antidoteApiOle.CallAntidote(ConstantsUtils.Corrector); }
protected override void Execute() { Logger.IntializeLogger(); var editorController = SdlTradosStudio.Application.GetController <EditorController>(); var editorService = new EditorService(editorController.ActiveDocument); var antidotedClient = new AntidoteClient(editorService, false); var antidoteApiOle = new AntidoteApiOle(antidotedClient); Log.Information("Starting Antidote for dictionary!"); antidoteApiOle.CallAntidote(ConstantsUtils.LastSelectedDictionary); }