GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feature: java.action.generateAccessorsPrompt to pick only the field to generate getters and setters · Issue #353 · nvim-java/nvim-java

feature: java.action.generateAccessorsPrompt to pick only the field to generate getters and setters #353

New issue
Copy link
New issue
Copy link
Open
Open
feature: java.action.generateAccessorsPrompt to pick only the field to generate getters and setters#353
Copy link
Assignees
s1n7ax
Labels
enhancementNew feature or requestNew feature or request

Description

@SinbadTheSailor2005
SinbadTheSailor2005
opened on Feb 15, 2025
Issue body actions

Did you check the docs?

  • I have read all the docs

Is your feature request related to a problem? Please describe.

In spring it is a common situation to create setters&getters for all fields. So make it automatically will significantly increase productivity.

Describe the solution you'd like

Just a pop up list of fields for implementing setters&getters

Describe alternatives you've considered

i have no alternative solutions, except manually write setters and getters

Additional context

No response

Activity

  1. SinbadTheSailor2005
    added
    enhancementNew feature or requestNew feature or request
    on Feb 15, 2025
  2. YSNBx commented on Feb 16, 2025

    @YSNBx
    YSNBx
    on Feb 16, 2025
    More actions

    Not sure if I'm understanding correctly but can't you use Lombok for this? @Getter and @Setter works for me after adding lombok (both compileOnly and annotationProcessor) to Gradle.

    Reacted by Aziz
  3. SinbadTheSailor2005 commented on Feb 16, 2025

    @SinbadTheSailor2005
    SinbadTheSailor2005
    on Feb 16, 2025
    Author
    More actions

    @YSNBx Wow! Never used lombok, but it seems it solved my problem. Big thanks!

  4. s1n7ax
    changed the title [-]feature: generate getters & setters[/-] [+]feature: java.action.generateAccessorsPrompt to pick only the field to generate getters and setters[/+] on Feb 16, 2025
  5. s1n7ax commented on Feb 16, 2025

    @s1n7ax
    s1n7ax
    on Feb 16, 2025
    Member
    More actions

    @SinbadTheSailor2005 You can generate getters and setters for all the fields but picking only some fields are not yet supported.

    You can use quick actions to generate getters setters. Here is the lua command you should execute to get the quick actions vim.lsp.buf.code_action().

    If you want to have individual keymaps then look into this wiki
    https://github.com/nvim-java/nvim-java/wiki/Tips-&-Tricks#-running-code-actions

    Of course lombok is also supported with this plugin

    Reacted by Aziz and Yasin Beyhan
  6. s1n7ax
    self-assigned this
    on Feb 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @s1n7ax
    s1n7ax

Labels

enhancementNew feature or requestNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.