Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add batch quick fix option when there is more than 1 fix #1450

Open
nlisker opened this issue Jun 12, 2024 · 0 comments
Open

Add batch quick fix option when there is more than 1 fix #1450

nlisker opened this issue Jun 12, 2024 · 0 comments

Comments

@nlisker
Copy link

nlisker commented Jun 12, 2024

When a single file has several problems of the same type, the compiler offers us to apply a solution on all similar problems. For example, with missing @Override annotations:
image

However, in the following example:

interface A {}

class B {

    B(A a) {
        getQ1();
        getQ2();
        getQ3();
    }
}

image
we don't have "fix 3 problems of the same category in file".

Furthermore, selecting all similar problems in the Problems view, right clicking, and selecting Quick Fix (ctrl-1) shows the following dialog for the @Override example:
image

But for my example with the missing methods, you get a message saying that there's no common quick fix:
image

There are common quick fixes. The dialog should be shown with the 2 options shown above (create a method and cast) under "Select a fix".

Using Eclipse 4.31.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant