Пример #1
0
 public ChangeFolderRefactoringAction(
     IRewritingManager rewritingManager,
     MoveToFolderRefactoringAction moveToFolder)
     : base(rewritingManager)
 {
     _moveToFolder = moveToFolder;
 }
 protected RefactoringPreviewProviderWrapperBase(
     ICodeOnlyRefactoringAction <TModel> refactoringAction,
     IRewritingManager rewritingManager)
 {
     _refactoringAction = refactoringAction;
     _rewritingManager  = rewritingManager;
 }
 public RenameFolderRefactoringAction(
     IRewritingManager rewritingManager,
     ChangeFolderRefactoringAction changeFolder)
     : base(rewritingManager)
 {
     _changeFolder = changeFolder;
 }
Пример #4
0
 public MoveMultipleFoldersRefactoringAction(
     IRewritingManager rewritingManager,
     MoveFolderRefactoringAction moveFolder)
     : base(rewritingManager)
 {
     _moveFolder = moveFolder;
 }
Пример #5
0
 public ImplementInterfaceRefactoringAction(
     AddInterfaceImplementationsRefactoringAction addImplementationsRefactoringAction,
     IRewritingManager rewritingManager)
     : base(rewritingManager)
 {
     _addImplementationsRefactoringAction = addImplementationsRefactoringAction;
 }
Пример #6
0
 public EncapsulateFieldUseBackingFieldRefactoringAction(
     IEncapsulateFieldRefactoringActionsProvider refactoringActionsProvider,
     IReplacePrivateUDTMemberReferencesModelFactory replaceUDTMemberReferencesModelFactory,
     IRewritingManager rewritingManager,
     INewContentAggregatorFactory newContentAggregatorFactory)
     : base(rewritingManager)
 {
     _replaceUDTMemberReferencesRefactoringAction = refactoringActionsProvider.ReplaceUDTMemberReferences;
     _replaceReferencesRefactoringAction          = refactoringActionsProvider.ReplaceReferences;
     _replaceDeclarationIdentifiers = refactoringActionsProvider.ReplaceDeclarationIdentifiers;
     _encapsulateFieldInsertNewCodeRefactoringAction = refactoringActionsProvider.EncapsulateFieldInsertNewCode;
     _replaceUDTMemberReferencesModelFactory         = replaceUDTMemberReferencesModelFactory;
     _newContentAggregatorFactory = newContentAggregatorFactory;
 }
 public EncapsulateFieldUseBackingUDTMemberRefactoringAction(
     IEncapsulateFieldRefactoringActionsProvider refactoringActionsProvider,
     IReplacePrivateUDTMemberReferencesModelFactory replaceUDTMemberReferencesModelFactory,
     IRewritingManager rewritingManager,
     INewContentAggregatorFactory newContentAggregatorFactory)
     : base(rewritingManager)
 {
     _modifyUDTRefactoringAction = refactoringActionsProvider.ModifyUserDefinedType;
     _replacePrivateUDTMemberReferencesRefactoringAction = refactoringActionsProvider.ReplaceUDTMemberReferences;
     _replaceReferencesRefactoringAction             = refactoringActionsProvider.ReplaceReferences;
     _encapsulateFieldInsertNewCodeRefactoringAction = refactoringActionsProvider.EncapsulateFieldInsertNewCode;
     _replaceUDTMemberReferencesModelFactory         = replaceUDTMemberReferencesModelFactory;
     _newContentAggregatorFactory = newContentAggregatorFactory;
 }
 public ExtractInterfaceRefactoringAction(
     AddInterfaceImplementationsRefactoringAction addImplementationsRefactoringAction,
     IParseTreeProvider parseTreeProvider,
     IParseManager parseManager,
     IRewritingManager rewritingManager,
     IProjectsProvider projectsProvider,
     IAddComponentService addComponentService)
     : base(parseManager, rewritingManager)
 {
     _addImplementationsRefactoringAction = addImplementationsRefactoringAction;
     _parseTreeProvider   = parseTreeProvider;
     _projectsProvider    = projectsProvider;
     _addComponentService = addComponentService;
 }
Пример #9
0
 public DeclareAsExplicitTypeQuickFix(ImplicitTypeToExplicitRefactoringAction refactoringAction)
     : base(typeof(VariableTypeNotDeclaredInspection), typeof(ImplicitlyTypedConstInspection))
 {
     _refactoring = refactoringAction;
 }