Skip to content

Implement RefactorReorderParametersCommand #764

@retailcoder

Description

@retailcoder

This code from the deprecated RubberduckMenu class:

    private void ReorderParameters(QualifiedSelection selection)
    {
        var progress = new ParsingProgressPresenter();
        var result = progress.Parse(_parser, IDE.ActiveVBProject);

        using (var view = new ReorderParametersDialog())
        {
            var factory = new ReorderParametersPresenterFactory(_editor, view, result, new MessageBox());
            var refactoring = new ReorderParametersRefactoring(factory, _editor, new MessageBox());
            refactoring.Refactor(selection);
        }
    }

Needs to go into the Rubberduck.UI.Command namespace:

public class RefactorReorderParametersCommand : CommandBase
{
    public override void Execute(object parameter)
    {
        throw new NotImplementedException();
    }
}

See #759

Metadata

Metadata

Assignees

No one assigned

    Labels

    criticalMarks a bug as a must-fix, showstopper issuefeature-refactoringsup-for-grabsUse this label in conjunction with a difficulty level label, e.g. difficulty-02-ducky

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions