public override void Execute(object parameter)
 {
     var factory = new ExtractMethodPresenterFactory(Editor, _state.AllDeclarations, _indenter);
     var refactoring = new ExtractMethodRefactoring(factory, Editor);
     refactoring.InvalidSelection += HandleInvalidSelection;
     refactoring.Refactor();
 }
Exemple #2
0
        public override void Execute(object parameter)
        {
            var factory     = new ExtractMethodPresenterFactory(Editor, _state.AllDeclarations, _indenter);
            var refactoring = new ExtractMethodRefactoring(factory, Editor);

            refactoring.InvalidSelection += HandleInvalidSelection;
            refactoring.Refactor();
        }
Exemple #3
0
        private void ExtractMethod()
        {
            var progress = new ParsingProgressPresenter();
            var result   = progress.Parse(_parser, IDE.ActiveVBProject);

            var declarations = result.Declarations;
            var factory      = new ExtractMethodPresenterFactory(_editor, declarations);
            var refactoring  = new ExtractMethodRefactoring(factory, _editor);

            refactoring.InvalidSelection += refactoring_InvalidSelection;
            refactoring.Refactor();
        }
        private void ExtractMethod()
        {
            var progress = new ParsingProgressPresenter();
            var result = progress.Parse(_parser, IDE.ActiveVBProject);

            var declarations = result.Declarations;
            var factory = new ExtractMethodPresenterFactory(_editor, declarations);
            var refactoring = new ExtractMethodRefactoring(factory, _editor);
            refactoring.InvalidSelection += refactoring_InvalidSelection;
            refactoring.Refactor();
        }