/// <summary> /// Initializes a new instance of the <see cref="RefactorRenameAdapter"/> class. /// </summary> /// <param name="serviceProvider">The <see cref="IServiceProvider"/> instance.</param> public RefactorRenameAdapter(IServiceProvider serviceProvider) { provider = serviceProvider; dte = provider.GetService(typeof(DTE)) as DTE; languageService = provider.GetService(typeof(ILuaLanguageService)) as LanguageService; refactoringService = provider.GetService(typeof(IRefactoringService)) as IRefactoringService; luaUndoService = provider.GetService(typeof(ILuaUndoService)) as ILuaUndoService; }
/// <summary> /// Initializes a new instance of the <see cref="RefactorRenameAdapter"/> class. /// </summary> /// <param name="serviceProvider">The <see cref="IServiceProvider"/> instance.</param> public RefactorRenameAdapter(IServiceProvider serviceProvider) { provider = serviceProvider; dte = provider.GetService(typeof (DTE)) as DTE; languageService = provider.GetService(typeof (ILuaLanguageService)) as LanguageService; refactoringService = provider.GetService(typeof (IRefactoringService)) as IRefactoringService; luaUndoService = provider.GetService(typeof (ILuaUndoService)) as ILuaUndoService; }