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

Feature: Automatically detect the fields of the object at the cursor #1

Open
zikani03 opened this issue Aug 3, 2022 · 0 comments
Open

Comments

@zikani03
Copy link
Member

zikani03 commented Aug 3, 2022

Once a user has placed their cursor on a "valid" object, the plugin should enable them to generate setter calls or assignment statements for all the fields present in the class of the object.

One consideration to be made is whether to also retrieve inherited fields.

Example

When user triggers the plugin (presses Ctrl+Alt+;) at (1) the plugin should automatically find name, age and address and generate the code at (2)

public class Person {
    private String name;
    private int age;
    private String address;
   
    // getters and setters

    public static void main(String... args) {
        Person person = new Person();
        person:* // (1)

        // (2)
        person.setName(/*...*/);
        person.setAge(/*...*/);
        person.setAddress(/*...*/);
    }
}
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