private void Setup() { _parser = new RubberduckParser(); _parser.ParseStarted += _parser_ParseStarted; _parser.ParserError += _parser_ParserError; _inspector = new Inspector(_parser, _configService); _parserErrorsPresenter = new ParserErrorsPresenter(_vbe, _addIn); _menu = new RubberduckMenu(_vbe, _addIn, _configService, _parser, _editor, _inspector); _menu.Initialize(); _formContextMenu = new FormContextMenu(_vbe, _parser); _formContextMenu.Initialize(); _codeInspectionsToolbar = new CodeInspectionsToolbar(_vbe, _inspector); _codeInspectionsToolbar.Initialize(); if (toolbarCoords.X != -1 && toolbarCoords.Y != -1) { _codeInspectionsToolbar.ToolbarCoords = toolbarCoords; } _codeInspectionsToolbar.ToolbarVisible = displayToolbar; }
public void CreateExtUi() { _menu.Initialize(); _codeInspectionsToolbar.Initialize(); }