public void RegisterATMLTranslator( ATMLTranslator translator )
 {
     translator.AtmlDocumentOpened += translator_AtmlDocumentOpened;
     translator.AtmlFileOpened += translator_AtmlFileOpened;
     translator.ProjectOpened += translator_ProjectOpened;
     translator.ProjectClosed += translator_ProjectClosed;
 }
 public void RegisterATMLTranslator( ATMLTranslator translator )
 {
     _translator = translator;
     _translator.InputDocumentOpened += _translator_OpenSourceDocument;
     _translator.AixmlTranslationStarted += delegate
                                            {
                                                _aixmlTranslationInProgress = true;
                                                SetButtonStates();
                                            };
     _translator.AixmlTranslationCompleted += _translator_AixmlTranslationCompleted;
     _translator.AixmlParseStarted += delegate
                                      {
                                          _aixmlParseInProgress = true;
                                          SetButtonStates();
                                      };
     _translator.AixmlParseCompleted += TranslatorOnAixmlParseCompleted;
     _translatorOutputWindow.RegisterATMLTranslator( translator );
 }