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

CodeActions to create Java field / getter method / template extension #536

Closed
angelozerr opened this issue Jan 13, 2022 · 0 comments · Fixed by #671
Closed

CodeActions to create Java field / getter method / template extension #536

angelozerr opened this issue Jan 13, 2022 · 0 comments · Fixed by #671
Assignees
Milestone

Comments

@angelozerr
Copy link
Contributor

Given this Qute template:

{@org.acme.Item item}
{item.XXX}

XXX property appears as an error. It should be nice to provide 3 code actions to fix the problem:

  • Create Java field public String XXX in org.acme.Item class.
  • Create Java getter method public String getXXX() {return this.XXX} in org.acme.Item class.
  • Create the template extension @TemplateExtension public String static getXXX(Item item) in a new class or in an existing class which defines already some template extension.
@angelozerr angelozerr changed the title CodeAction to create Java field / getter method CodeActions to create Java field / getter method / template extension Jan 13, 2022
datho7561 added a commit to datho7561/quarkus-ls that referenced this issue Jul 7, 2022
Closes redhat-developer#536

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/vscode-quarkus that referenced this issue Jul 13, 2022
datho7561 added a commit to datho7561/quarkus-ls that referenced this issue Jul 15, 2022
Generates Java code for a property referenced in a Qute template that
doesn't exist yet.

It can generate:
  *  A new public field, or update the visibility of an existing field
  *  A new getter, properly returning the field bearing the
     corresponding name if it exists
  *  A new template extension in the detected template extensions class
  *  A new template extension in a newly generated template extensions
     class

Closes redhat-developer#536

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/quarkus-ls that referenced this issue Jul 15, 2022
Generates Java code for a property referenced in a Qute template that
doesn't exist yet.

It can generate:
  *  A new public field, or update the visibility of an existing field
  *  A new getter, properly returning the field bearing the
     corresponding name if it exists
  *  A new template extension in the detected template extensions class
  *  A new template extension in a newly generated template extensions
     class

Closes redhat-developer#536

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/quarkus-ls that referenced this issue Jul 18, 2022
Generates Java code for a property referenced in a Qute template that
doesn't exist yet.

It can generate:
  *  A new public field, or update the visibility of an existing field
  *  A new getter, properly returning the field bearing the
     corresponding name if it exists
  *  A new template extension in the detected template extensions class
  *  A new template extension in a newly generated template extensions
     class

Closes redhat-developer#536

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/quarkus-ls that referenced this issue Jul 18, 2022
Generates Java code for a property referenced in a Qute template that
doesn't exist yet.

It can generate:
  *  A new public field, or update the visibility of an existing field
  *  A new getter, properly returning the field bearing the
     corresponding name if it exists
  *  A new template extension in the detected template extensions class
  *  A new template extension in a newly generated template extensions
     class

Closes redhat-developer#536

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/quarkus-ls that referenced this issue Jul 19, 2022
Generates Java code for a property referenced in a Qute template that
doesn't exist yet.

It can generate:
  *  A new public field, or update the visibility of an existing field
  *  A new getter, properly returning the field bearing the
     corresponding name if it exists
  *  A new template extension in the detected template extensions class
  *  A new template extension in a newly generated template extensions
     class

Closes redhat-developer#536

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/quarkus-ls that referenced this issue Jul 21, 2022
Generates Java code for a property referenced in a Qute template that
doesn't exist yet.

It can generate:
  *  A new public field, or update the visibility of an existing field
  *  A new getter, properly returning the field bearing the
     corresponding name if it exists
  *  A new template extension in the detected template extensions class
  *  A new template extension in a newly generated template extensions
     class

Closes redhat-developer#536

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/quarkus-ls that referenced this issue Jul 22, 2022
Generates Java code for a property referenced in a Qute template that
doesn't exist yet.

It can generate:
  *  A new public field, or update the visibility of an existing field
  *  A new getter, properly returning the field bearing the
     corresponding name if it exists
  *  A new template extension in the detected template extensions class
  *  A new template extension in a newly generated template extensions
     class

Closes redhat-developer#536

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/quarkus-ls that referenced this issue Jul 25, 2022
Generates Java code for a property referenced in a Qute template that
doesn't exist yet.

It can generate:
  *  A new public field, or update the visibility of an existing field
  *  A new getter, properly returning the field bearing the
     corresponding name if it exists
  *  A new template extension in the detected template extensions class
  *  A new template extension in a newly generated template extensions
     class

Closes redhat-developer#536

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/quarkus-ls that referenced this issue Jul 27, 2022
Generates Java code for a property referenced in a Qute template that
doesn't exist yet.

It can generate:
  *  A new public field, or update the visibility of an existing field
  *  A new getter, properly returning the field bearing the
     corresponding name if it exists
  *  A new template extension in the detected template extensions class
  *  A new template extension in a newly generated template extensions
     class

Closes redhat-developer#536

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/quarkus-ls that referenced this issue Jul 27, 2022
Generates Java code for a property referenced in a Qute template that
doesn't exist yet.

It can generate:
  *  A new public field, or update the visibility of an existing field
  *  A new getter, properly returning the field bearing the
     corresponding name if it exists
  *  A new template extension in the detected template extensions class
  *  A new template extension in a newly generated template extensions
     class

Closes redhat-developer#536

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/quarkus-ls that referenced this issue Jul 27, 2022
Generates Java code for a property referenced in a Qute template that
doesn't exist yet.

It can generate:
  *  A new public field, or update the visibility of an existing field
  *  A new getter, properly returning the field bearing the
     corresponding name if it exists
  *  A new template extension in the detected template extensions class
  *  A new template extension in a newly generated template extensions
     class

Closes redhat-developer#536

Signed-off-by: David Thompson <davthomp@redhat.com>
angelozerr pushed a commit that referenced this issue Jul 27, 2022
Generates Java code for a property referenced in a Qute template that
doesn't exist yet.

It can generate:
  *  A new public field, or update the visibility of an existing field
  *  A new getter, properly returning the field bearing the
     corresponding name if it exists
  *  A new template extension in the detected template extensions class
  *  A new template extension in a newly generated template extensions
     class

Closes #536

Signed-off-by: David Thompson <davthomp@redhat.com>
@angelozerr angelozerr added this to the 0.13.0 milestone Jul 27, 2022
angelozerr pushed a commit to redhat-developer/vscode-quarkus that referenced this issue Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants