public void Exec(string commandName, vsCommandExecOption executeOption, ref object varIn, ref object varOut, ref bool handled) { handled = false; if (executeOption == vsCommandExecOption.vsCommandExecOptionDoDefault) { if (commandName == Command.COMMAND_PREFIX + Command.MENU_BAR_EXPORT_COMMAND_NAME) { ExportGenerator generator = _ioc.CreateExportGenerator(); generator.Generate(); } } }