Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }