private void _editorController_Opened(object sender, DocumentEventArgs e) { try { _logger.Info(string.Format("Opened document: {0}", e.Document.ActiveFile.Name)); _service.RegisterDocument(e.Document); } catch (Exception ex) { _logger.Debug(ex, "Unexpected exception when changing the active document"); throw; } }
private void _editorController_Opened(object sender, DocumentEventArgs e) { try { if (e.Document.Mode != EditingMode.Translation) { return; } _service.RegisterDocument(e.Document); } catch (Exception ex) { _logger.Debug(ex, "Unexpected exception when changing the active document"); } }